Ask Your Question
0

Running a Universal Robot Urp or Script file from ROS PC

asked 2017-11-13 03:41:57 -0500

npa gravatar image

Hello,

Is it possible to run a Universal Robot Urp file or Script file from ROS PC to control a UR robot in the simulator(rviz/Gazebo)? The use case is that: I have a program (URP file) that is used to move the robot without collision to the home position during a process. And now I want it to test this program for its functionality from anywhere in the work space. My idea is to make a ros visualization in rviz or gazebo and to initially move the robot to a random point in the work space and call the safety program from ros pc to detect any collision in the simulator. I can record all those points where a collision is detected and I can later correct the program if I want to prevent the collision in future.

Is it possible to do this. Please let me know your suggestions. Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-13 04:01:32 -0500

gvdhoorn gravatar image

Is it possible to run a Universal Robot Urp file or Script file from ROS PC to control a UR robot in the simulator(rviz/Gazebo)

No, that is not (directly) possible, as URScript (and the binary representation of it, urp) is proprietary to UR, and Gazebo (note: RViz is not a simulator, but a visualisation tool) has no support for it.

You could perhaps see whether ur-sim in combination with some other tool could be of use.

Another option: write a parser for URScript (it's very close to Python), extract the motion commands (movej, movel, etc) and then use Gazebo to do what you initially intended to do, but have a separate node command motions based on the motion statements you've extracted from the URScript file.

edit flag offensive delete link more

Comments

Thanks a lot for your answer. I guess your second option is doable easily. But i didn't understood what you meant by " but have a separate node command motions based on the motion statements ". What do you mean by this?

npa gravatar image npa  ( 2017-11-13 04:59:16 -0500 )edit

Gazebo wouldn't 'load' or 'execute' or 'run' the URScript file directly, but a separate ROS node would parse it and construct JointTrajectory msgs or action goals and submit those.

gvdhoorn gravatar image gvdhoorn  ( 2017-11-13 05:16:07 -0500 )edit

Ok. Got it. Thanks :)

npa gravatar image npa  ( 2017-11-13 06:07:02 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2017-11-13 03:41:57 -0500

Seen: 916 times

Last updated: Nov 13 '17