Skip to content

Commit

Permalink
Update the reamappings for the stamped/unstamped topics
Browse files Browse the repository at this point in the history
  • Loading branch information
civerachb-cpr committed Sep 11, 2024
1 parent 83c0d2c commit e8c5701
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions turtlebot4_bringup/launch/robot.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@


def generate_launch_description():
republisher_ns = '_do_not_use'
create3_ns = '_do_not_use'

pkg_turtlebot4_bringup = get_package_share_directory('turtlebot4_bringup')
create3_republisher = get_package_share_directory('create3_republisher')
Expand Down Expand Up @@ -80,19 +80,21 @@ def generate_launch_description():
package='create3_republisher',
executable='create3_republisher',
parameters=[create3_repub_param_yaml_file,
{'robot_namespace': republisher_ns}],
{'robot_namespace': create3_ns}],
output='screen',
remappings=[
([republisher_ns, 'cmd_vel'], [republisher_ns, 'cmd_vel_unstamped'])
# remap /cmd_vel to /cmd_vel_unstamped
# /_do_not_use/cmd_vel is unstamped
('cmd_vel', 'cmd_vel_unstamped')
]
)
unstamper_node = Node(
package='twist_stamper',
executable='twist_unstamper',
name='twist_unstamper',
remappings=[
('cmd_vel_in', [republisher_ns, 'cmd_vel']),
('cmd_vel_out', [republisher_ns, 'cmd_vel_unstamped'])
('cmd_vel_in', 'cmd_vel'),
('cmd_vel_out', 'cmd_vel_unstamped')
]
)

Expand Down

0 comments on commit e8c5701

Please sign in to comment.