mirror of
https://github.com/bjoernellens1/cps_rmp220_support.git
synced 2024-11-23 15:45:08 +00:00
update: new teleop layout
This commit is contained in:
parent
9550c9b22e
commit
7066dd84f0
@ -39,7 +39,8 @@ def generate_launch_description():
|
|||||||
# namespace = namespace
|
# namespace = namespace
|
||||||
# )
|
# )
|
||||||
|
|
||||||
# Using the more 'ROS' way:
|
# Using the more 'ROS' way: joy node publishes at 50Hz defined in the config and joy-teleop
|
||||||
|
# node publishes the joy messages only when enable button is pressed.
|
||||||
|
|
||||||
joy_params = os.path.join(get_package_share_directory('cps_rmp220_support'),'config','joystick.yaml')
|
joy_params = os.path.join(get_package_share_directory('cps_rmp220_support'),'config','joystick.yaml')
|
||||||
namespace = "/rmp"
|
namespace = "/rmp"
|
||||||
@ -55,7 +56,7 @@ def generate_launch_description():
|
|||||||
executable='teleop_node',
|
executable='teleop_node',
|
||||||
name='teleop_twist_joy',
|
name='teleop_twist_joy',
|
||||||
parameters=[joy_params, {'use_sim_time': use_sim_time}],
|
parameters=[joy_params, {'use_sim_time': use_sim_time}],
|
||||||
remappings=[('cmd_vel', 'cmd_vel_joy')],
|
remappings=[('cmd_vel', 'cmd_vel_out')],
|
||||||
namespace = namespace
|
namespace = namespace
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ def generate_launch_description():
|
|||||||
parameters=[configured_params],
|
parameters=[configured_params],
|
||||||
arguments=['--ros-args', '--log-level', log_level],
|
arguments=['--ros-args', '--log-level', log_level],
|
||||||
remappings=remappings +
|
remappings=remappings +
|
||||||
[('cmd_vel', 'cmd_vel_nav'), ('cmd_vel_smoothed', 'cmd_vel')]),
|
[('cmd_vel', 'cmd_vel_nav'), ('cmd_vel_smoothed', 'cmd_vel_out')]), # so we get cmd_vel_smoothed as output to robot controller
|
||||||
Node(
|
Node(
|
||||||
package='nav2_lifecycle_manager',
|
package='nav2_lifecycle_manager',
|
||||||
executable='lifecycle_manager',
|
executable='lifecycle_manager',
|
||||||
|
Loading…
Reference in New Issue
Block a user