ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to add moveit plugin into rviz to access RobotState

asked 2022-10-11 03:56:05 -0500

husky gravatar image

Hello, I am a begginer with ROS and have been experimenting with making my own launch files. I have created a launch file that launches rviz as so, (it looks into the urdf files to find the robot description and displays it into rviz):

<?xml version="1.0"?>
<launch>
  <param name="robot_description" command="$(find xacro)/xacro '$(find twowheel_desc)/urdf/robot.xacro'"/>
  <!-- send fake joint values -->
  <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher">
    <param name="use_gui" value="False"/>
  </node>
  <!-- Combine joint values -->
  <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher"/>
  <!-- Show in Rviz   -->
  <node name="rviz" pkg="rviz" type="rviz" />
</launch>

However when I launch it, I want to see the RobotState which is in the moveit_ros_visualization plugin But this plugin is not set up in my rviz.

How do I add it to my rviz? And I would appreciate any help in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-10-12 06:57:54 -0500

Mike Scheutzow gravatar image
  1. make sure the apt package ros-melodic-moveit-ros-visualization is installed.
  2. start rviz. At the bottom of the left panel, click the Add button.
  3. select Robot State from the list. click OK.
  4. expand the new RobotState entry in the left panel and configure the first 3 properties.
  5. use File|Save menu to save this rviz configuration (for next time.)
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-10-11 03:56:05 -0500

Seen: 43 times

Last updated: Oct 12 '22