Skip to content

Commit

Permalink
launch2/turbopi_ros.launch.py: Define constant, remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wltjr committed Jul 13, 2024
1 parent 760e08e commit 744bd2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions launch2/turbopi_ros.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

def launch_setup(context: LaunchContext):

CM = "/controller_manager"
pkg_name = 'turbopi_ros'
filename = 'turbopi.urdf.xacro'

Expand Down Expand Up @@ -57,26 +58,25 @@ def launch_setup(context: LaunchContext):
diff_drive_spawner = Node(
package="controller_manager",
executable="spawner",
arguments=["diff_drive_controller", "-c", "/controller_manager"],
arguments=["diff_drive_controller", "-c", CM],
)

joint_broad_spawner = Node(
package="controller_manager",
executable="spawner",
arguments=["joint_state_broadcaster", "-c", "/controller_manager"],
arguments=["joint_state_broadcaster", "-c", CM],
)

position_spawner = Node(
package="controller_manager",
executable="spawner",
arguments=["position_controllers", "-c", "/controller_manager"],
arguments=["position_controllers", "-c", CM],
)

slam_toolbox_node = Node(
package='slam_toolbox',
executable='async_slam_toolbox_node',
parameters=[ slam_params_file, {'use_sim_time': True} ],
# remappings=[('/map', '/slam_toolbox/map'),],
)

infrared_node = Node(
Expand Down

0 comments on commit 744bd2f

Please sign in to comment.