Files
lzwc-terminal-unitreeGo2/src/config.cpp

27 lines
852 B
C++

#include "config.hpp"
namespace custom {
void CustomConfig::loadDefaults() {
network_interface = std::string(NETWORK_INTERFACE);
mqtt_broker = std::string(MQTT_BROKER);
mqtt_port = MQTT_PORT;
mqtt_username = std::string(MQTT_USERNAME);
mqtt_password = std::string(MQTT_PASSWORD);
mqtt_client_id = std::string(MQTT_CLIENT_ID);
topic_prefix = std::string(TOPIC_PREFIX);
topic_cmd = std::string(TOPIC_CMD);
topic_state = std::string(TOPIC_STATE);
control_frequency = CONTROL_FREQUENCY;
state_publish_frequency = STATE_PUBLISH_FREQUENCY;
max_linear_velocity = MAX_LINEAR_VELOCITY;
max_angular_velocity = MAX_ANGULAR_VELOCITY;
emergency_stop_timeout = EMERGENCY_STOP_TIMEOUT;
stand_height = STAND_HEIGHT;
default_gait = static_cast<int>(DEFAULT_GAIT);
}
} // namespace custom