Skip to content

Commit

Permalink
Changed launch delays and how the robot description is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
VincidaB committed May 2, 2024
1 parent 7ad7fd9 commit 80bdfcb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/ezbot_robot/launch/real_robot.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,21 @@ def generate_launch_description():
#controller_params_file = os.path.join(get_package_share_directory('ezbot_robot'), 'config', 'controllers.yaml')
controller_params_file = os.path.join(get_package_share_directory('ezbot_robot'), 'config', 'omnidirectional_controller.yaml')


robot_description = Command(['ros2 param get --hide-type /robot_state_publisher robot_description'])


controller_manager = Node(
package="controller_manager",
executable="ros2_control_node",
parameters=[controller_params_file],
remappings = [('/controller_manager/robot_description', '/robot_description')],
parameters=[robot_description],
)





delayed_controller_manager = TimerAction(
period=2.0,
period=7.0,
actions=[controller_manager],
)

Expand All @@ -72,7 +73,7 @@ def generate_launch_description():
arguments=['omnidirectional_controller'],
)
delayed_omnidrive_spawner = TimerAction(
period=1.0,
period=10.0,
actions=[omnidrive_spawner],
)

Expand All @@ -82,7 +83,7 @@ def generate_launch_description():
arguments=['joint_state_broadcaster'],
)
delayed_joint_broad_spawner = TimerAction(
period=1.0,
period=11.0,
actions=[joint_broad_spawner],
)

Expand All @@ -93,7 +94,7 @@ def generate_launch_description():
)

delayed_actuators_spawner = TimerAction(
period=1.0,
period=12.0,
actions=[actuators_spawner],
)

Expand Down

0 comments on commit 80bdfcb

Please sign in to comment.