Ask Your Question

Webots - MoveIt! Controlling two UR5e Robots

asked 2020-02-26 08:53:50 -0600

Tim97_KIT gravatar image

updated 2020-02-27 08:37:57 -0600

Hi, I want to contrloll two ur5e arms with Moveit over Webots. My goal is to give them an endeffector pose and they go to that position. It works for one! My problem is to controll more than one. I want to have one launch file which starts a move_group node and a webots node for each robot im adding. I tried to follow the Gazebo tutorial and i wanted to use the "<group>" command but then move_group wouldnt subscribe to my webots_joint-publisher. I think its because my Webots node isnt in the same namespace but i couldnt figure out how to change the namespace in my webots-python script.

edit retag flag offensive close merge delete


Seeing as Webots is not a very commonly used simulator with ROS, I would expect you'll have a higher chance of getting a response if you'd use a more appropriate venue, such as the Webots support forum or their issue tracker.

gvdhoorn gravatar image gvdhoorn  ( 2020-02-27 13:41:58 -0600 )edit

Thanks for your answer! My first attempt was to ask the webots forum but they couldnt help with the problem. Thats why im here. I hoped that someone tried to use Webots with moveIt and knows how to controll multiple robots with it.

Tim97_KIT gravatar image Tim97_KIT  ( 2020-02-28 07:00:59 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-03-02 00:42:53 -0600

DavidMansolino gravatar image


I am not very familiar with the group command, but about Webots you should define a different 'prefix' param for each of your UR5e robot from the launch file.

For more information here is the Webots controller that provide the ROS interface for the UR5e robot:

edit flag offensive delete link more


Hi, So i have to use two launchfiles for each robot and change the prefix from each one? I tried it for one robot and then it cant find the joints anymore.

Tim97_KIT gravatar image Tim97_KIT  ( 2020-03-02 11:06:44 -0600 )edit

To simplify the process, a new argument called --node-namehave been introduced in With this patch you can now directly set in the Webots scene-tree in the controllerArgs fields the name of the node to avoid name clash when using more than one robot with ROS.

DavidMansolino gravatar image DavidMansolino  ( 2020-03-03 04:03:12 -0600 )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



Asked: 2020-02-26 08:44:49 -0600

Seen: 489 times

Last updated: Feb 27 '20