Skip to content

Commit

Permalink
Added use_sim_time paramter to joint_state_publisher
Browse files Browse the repository at this point in the history
Removed static transforms for wheeldrops
  • Loading branch information
roni-kreinin committed Mar 7, 2023
1 parent eabcfb8 commit 1d9d358
Showing 1 changed file with 1 addition and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,55 +46,14 @@ def generate_launch_description():
executable='joint_state_publisher',
name='joint_state_publisher',
output='screen',
parameters=[{'use_sim_time': True}],
)

left_wheel_drop_stf = Node(
name='left_wheel_drop_stf',
package='tf2_ros',
executable='static_transform_publisher',
output='screen',
arguments=[
'--x', '0.0',
'--y', '0.1165',
'--z', '0.0402',
'--roll', '-1.5707',
'--pitch', '0.0',
'--yaw', '0.0',
'--frame-id', 'base_link',
'--child-frame-id', 'wheel_drop_left',
],
remappings=[
('/tf_static', 'tf_static')
],
)

right_wheel_drop_stf = Node(
name='right_wheel_drop_stf',
package='tf2_ros',
executable='static_transform_publisher',
output='screen',
arguments=[
'--x', '0.0',
'--y', '-0.1165',
'--z', '0.0402',
'--roll', '-1.5707',
'--pitch', '0.0',
'--yaw', '0.0',
'--frame-id', 'base_link',
'--child-frame-id', 'wheel_drop_right',
],
remappings=[
('/tf_static', 'tf_static')
],
)

# Define LaunchDescription variable
ld = LaunchDescription(ARGUMENTS)

# Add nodes to LaunchDescription
ld.add_action(joint_state_publisher)
ld.add_action(robot_state_publisher)
ld.add_action(left_wheel_drop_stf)
ld.add_action(right_wheel_drop_stf)

return ld

0 comments on commit 1d9d358

Please sign in to comment.