Skip to content

Enable RViz joint state publisher by default in vertical_chess launch - #15

Open
juliaduerr wants to merge 3 commits into
developfrom
codex/find-how-to-display-robot-model-in-rviz
Open

Enable RViz joint state publisher by default in vertical_chess launch#15
juliaduerr wants to merge 3 commits into
developfrom
codex/find-how-to-display-robot-model-in-rviz

Conversation

@juliaduerr

Copy link
Copy Markdown
Contributor

Motivation

  • RViz was showing a RobotModel status error due to missing joint state messages, so the launch should start a joint state publisher automatically to populate TF/joint data.
  • Make the RViz joint state publisher optional but enabled by default so visualization works out-of-the-box while still allowing it to be disabled when not needed.

Description

  • Add a new launch argument DeclareLaunchArgument("enable_rviz_joint_state_publisher", default_value="true", ...) to control whether the RViz joint state publisher runs.
  • Add a Node entry for the ainex_controller package executable rviz_joint_state_publisher guarded by IfCondition(LaunchConfiguration("enable_rviz_joint_state_publisher")).
  • Register an exit handler for the new node with create_exit_handler(...) and include the new argument, node, and exit handler in the returned LaunchDescription so it participates in the launch lifecycle.

Testing

  • No automated tests were run because this is a configuration-only change; verification consists of launch file edits and a commit.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants