ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

How to replace Gazebo physics with Mujoco

asked 2020-04-10 15:14:39 -0600

azerila gravatar image

updated 2022-01-31 08:41:12 -0600

lucasw gravatar image

I have a ros application that uses ros_control and controller_manager while being simulated in Gazebo in an additional pacakge.

I am interested to use the controllers inside this application with Mujoco instead of Gazebo for which I am writing a new package.

If I have understood correctly one typically writes a new script first using hardware_interface::RobotHW class. Is there a way to avoid this? For example if I can still use most of the current implementations within Gazebo to do this.

In the end also I am hoping in general to have the python api of Mujoco also instead of its C++.

Are there also implementation examples other than gazebo that I can look at?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-01-06 09:53:36 -0600

lucasw gravatar image

updated 2022-01-06 09:55:47 -0600

https://github.com/shadow-robot/mujoc... looks helpful for some amount of ros integration but it doesn't look to help much with gazebo controller plugins.

Try https://github.com/ros-controls/ros_c... for non-gazebo usage of the gazebo control plugins you are using, you should be able to start up standalone nodes that publish out the results of their control computations on topics, then you could have a python node subscribe to those and talk to mujoco.

http://wiki.ros.org/pid is useful if you want a quick and simple topics-in-topics-out pid controller that doesn't use ros_control, or spend a little more time finding and integrating some non-ros python libraries that do pid or more advanced control.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-04-10 15:14:39 -0600

Seen: 2,665 times

Last updated: Jan 06 '22