Skip to content

Commit

Permalink
disable state publishers
Browse files Browse the repository at this point in the history
  • Loading branch information
eyr1n committed Nov 12, 2023
1 parent d276ba5 commit da38bbb
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions launch/driver.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,31 +163,31 @@ def generate_launch_description():
{'wired_sync_mode': launch.substitutions.LaunchConfiguration('wired_sync_mode')},
{'subordinate_delay_off_master_usec': launch.substitutions.LaunchConfiguration('subordinate_delay_off_master_usec')}]),
# If flag overwrite_robot_description is set:
launch_ros.actions.Node(
package='robot_state_publisher',
executable='robot_state_publisher',
name='robot_state_publisher',
parameters = [{'robot_description' : urdf}],
condition=conditions.IfCondition(launch.substitutions.LaunchConfiguration("overwrite_robot_description"))),
launch_ros.actions.Node(
package='joint_state_publisher',
executable='joint_state_publisher',
name='joint_state_publisher',
arguments=[urdf_path],
condition=conditions.IfCondition(launch.substitutions.LaunchConfiguration("overwrite_robot_description"))),
# If flag overwrite_robot_description is not set:
launch_ros.actions.Node(
package='robot_state_publisher',
executable='robot_state_publisher',
name='robot_state_publisher',
parameters = [{'robot_description' : urdf}],
remappings=remappings,
condition=conditions.UnlessCondition(launch.substitutions.LaunchConfiguration("overwrite_robot_description"))),
launch_ros.actions.Node(
package='joint_state_publisher',
executable='joint_state_publisher',
name='joint_state_publisher',
arguments=[urdf_path],
remappings=remappings,
condition=conditions.UnlessCondition(launch.substitutions.LaunchConfiguration("overwrite_robot_description"))),
# launch_ros.actions.Node(
# package='robot_state_publisher',
# executable='robot_state_publisher',
# name='robot_state_publisher',
# parameters = [{'robot_description' : urdf}],
# condition=conditions.IfCondition(launch.substitutions.LaunchConfiguration("overwrite_robot_description"))),
# launch_ros.actions.Node(
# package='joint_state_publisher',
# executable='joint_state_publisher',
# name='joint_state_publisher',
# arguments=[urdf_path],
# condition=conditions.IfCondition(launch.substitutions.LaunchConfiguration("overwrite_robot_description"))),
# # If flag overwrite_robot_description is not set:
# launch_ros.actions.Node(
# package='robot_state_publisher',
# executable='robot_state_publisher',
# name='robot_state_publisher',
# parameters = [{'robot_description' : urdf}],
# remappings=remappings,
# condition=conditions.UnlessCondition(launch.substitutions.LaunchConfiguration("overwrite_robot_description"))),
# launch_ros.actions.Node(
# package='joint_state_publisher',
# executable='joint_state_publisher',
# name='joint_state_publisher',
# arguments=[urdf_path],
# remappings=remappings,
# condition=conditions.UnlessCondition(launch.substitutions.LaunchConfiguration("overwrite_robot_description"))),
])

0 comments on commit da38bbb

Please sign in to comment.