HI. This is my first question. I'm new to ROS and a little poor in English. I will describe my question as clearly as I can. Forgive me if I make some mistakes and don't feel uncomfortable to tell me. Thx.
I'm having problems in controlling the real ur5_e with c++.
I used the code in the tutorial.http://docs.ros.org/kinetic/api/moveit_tutorials/html/doc/motion_planning_api/motion_planning_api_tutorial.html
I've already changed the link names and it works well in rviz when it is not connected to a real robot.(i.e. It performs as I defined in the code every time I press *next*)
However, when I connect it to a real ur5_e robot and open rviz, it starts to show two models. One is laying down(I think every joint of it is 0 ,which is defined in urdf.). The other one is the same with the real robot. But the one is laying down doesn't show often. It only appears suddenly and then disappear soon. And when I press *next*, the laying down one performs , as I defined, and the other one stays. The real robot doesn't move at all.
I think this issue appears because I opened two models somewhere on my own. I know one is in my code and I think the other one is in the terminal. So I searched methods of connecting ur5_e in c++ and I found this.https://github.com/wcaarls/ur_arm/blob/master/src/main.cpp But I still don't know how to fix my code because I can't understand this code. I just know it connects the robot in c++. So I really need some help here. I don't know am I right about my problem and I don't know how to fix it.
I use ubuntu 16.04. ROS is kineitc version.
I use those to start:
roslaunch ur_modern_driver ur5e_bringup.launch robot_ip:=192.168.1.129
roslaunch ur5_e move_demo.launch
what move_demo.launch looks like:
##
↧