How do I interact the actual robot with visualization by rviz in Moveit?
I have visualized my robot arm in Rviz. And the actual robot side also connects to RaspberryPi 3 (ROS installed already). I have read many documents and articles but they made me dizzy.
As what I have researched that I have to create a publisher(in Moveit?) then send data to ActionServer (is this I have to setup on Raspberry Pi?), then using Ros in Raspberry to control servo? Is this plan correct?
I am sorry if I make confusing, please help me to fix the plan for interacting with the actual robot!
Asked by MarkNguyen on 2018-07-24 22:06:12 UTC
Answers
Hi
As far as I know ( based on my previous experience )
- First, you need to create a CAD model of the robot.
- Create URDF of the model.
- In your ROS (Raspberry Pi) open Moveit and upload the urdf.
- Define all the joints and necessary things in moveit and create the moveit configuration file.
- Now roslaunch this configuration file (demo.launch usually) which opens your model in Rviz.
- Rviz will be publishing the joint angles to the jointstates topic.
- In your hardware microcontroller (eg. Arduino if you are using ) write a node to subscribe to this jointstates topic.
- All the computation will be done by ros and the final commands are given to the arm (hardware).
- You can see your arm moving to the desired position as seen in Rviz simulation.
I hope you got a rough idea of the entire procedure.
Asked by SkullKrushur on 2019-02-12 07:15:34 UTC
Comments
Please be more precise. What is "your robot arm"? What do you want to do exactly? What tutorial were/are you following?
Asked by fvd on 2018-08-07 23:06:50 UTC