How to add moveit plugin into rviz to access RobotState
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.