Skip to content

Commit 146f0a0

Browse files
Using joint_state_broadcaster instead of controller
1 parent 3d32a2a commit 146f0a0

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/joint_state_broadcaster:
2+
ros__parameters:
3+
type: joint_state_broadcaster/JointStateBroadcaster
4+
use_sim_time: True
5+
publish_rate: 50.0
6+
7+

pmb2_controller_configuration/config/joint_state_controller.yaml

-7
This file was deleted.

pmb2_controller_configuration/launch/default_controllers.launch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def generate_launch_description():
2222
include_launch_py_description(
2323
'pmb2_controller_configuration', ['launch', 'mobile_base_controller.launch.py']),
2424
include_launch_py_description(
25-
'pmb2_controller_configuration', ['launch', 'joint_state_controller.launch.py']),
25+
'pmb2_controller_configuration', ['launch', 'joint_state_broadcaster.launch.py']),
2626
# imu_sensor_controller not migrated to ROS2 yet
2727
# include_launch_py_description(
2828
# 'imu_sensor_controller', ['launch', 'imu_sensor_controller.launch.py']),

pmb2_controller_configuration/launch/joint_state_controller.launch.py renamed to pmb2_controller_configuration/launch/joint_state_broadcaster.launch.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
def generate_launch_description():
2323
return generate_load_controller_launch_description(
24-
controller_name='joint_state_controller',
25-
controller_type='joint_state_controller/JointStateController',
24+
controller_name='joint_state_broadcaster',
25+
controller_type='joint_state_broadcaster/JointStateBroadcaster',
2626
controller_params_file=os.path.join(
2727
get_package_share_directory('pmb2_controller_configuration'),
28-
'config', 'joint_state_controller.yaml'))
28+
'config', 'joint_state_broadcaster.yaml'))

0 commit comments

Comments
 (0)