MCPcopy Create free account
hub / github.com/TeleHuman/TextOp / Config

Class Config

TextOpDeploy/src/textop_ctrl/include/textop_ctrl/config_loader.hpp:8–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <vector>
7
8struct Config
9{
10 // Control parameters
11 double control_dt = 0.02;
12 std::string msg_type = "hg";
13 std::string imu_type = "pelvis";
14
15 // Topics
16 std::string lowcmd_topic = "/lowcmd";
17 std::string lowstate_topic = "/lowstate";
18
19 // Model paths
20 std::string policy_path;
21 std::string onnx_path;
22 std::string motion_path;
23
24 // Control gains for 29DOF
25 std::vector<double> kps; // [29]
26 std::vector<double> kds; // [29]
27
28 // Default positions for 29DOF
29 std::vector<double> default_angles; // [29]
30
31 // Scaling factors
32 std::vector<double> action_scale; // [29]
33
34 // Model dimensions
35 int num_actions = 29;
36 int num_obs = 428; // 290 + 15 + 30 + 3 + 3 + 29 + 29 + 29 = 428
37
38 // Joint names for 29DOF (mujoco order)
39 std::vector<std::string> joint_names;
40
41 // Stiffness and damping parameters
42 std::vector<double> stiffness_params;
43 std::vector<double> damping_params;
44
45 Config() = default;
46 explicit Config(const std::string& config_path);
47};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected