Skip to content

Commit d441508

Browse files
committed
Add walking_controller parameters and enable use_sim_time in launch file
1 parent 2cb1c25 commit d441508

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

config/g1/controllers.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@ standby_controller:
4646
5.0, 5.0, 5.0,
4747
3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0,
4848
3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0 ]
49+
50+
walking_controller:
51+
ros__parameters:
52+
update_rate: 50

launch/mujoco.launch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def generate_temp_config(config_path, package_name, kv_pairs):
6868
# --------------------------
6969
def control_spawner(names, inactive=False):
7070
args = list(names)
71-
args += ['--param-file', LaunchConfiguration('controllers_yaml')]
7271
if inactive:
7372
args.append('--inactive')
7473
return Node(
@@ -150,6 +149,7 @@ def generate_launch_description():
150149
{"model_package": "unitree_description",
151150
"model_file": PythonExpression(["'/mjcf/", robot_type, ".xml'"]),
152151
"physics_plugins": ["mujoco_ros2_control::MujocoRos2ControlPlugin"],
152+
"use_sim_time": True
153153
},
154154
robot_description,
155155
LaunchConfiguration('controllers_yaml'),

0 commit comments

Comments
 (0)