Skip to content

JKBehrens/mujoco-ros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Introduction

The ros_control interface for the MuJoCo simulator. The code parses a given model and register a control interface for each slide or hinge joint. The ros_control effort based controllers could be then loaded as shown in example start_simple_robot.launch. It provides trajectory based interface e.g. for MoveIt.

Installation

MuJoCo

Download MuJoCo simulator from http://www.mujoco.org and put the simulator code as well as your MuJoCo key into the folder ~/.mujoco/, i.e.:

ls ~/.mujoco
mjkey.txt  mujoco200

ls ~/.mujoco/mujoco200/
bin  doc  include  model  sample

Ros package install

Put this package into your ros workspace, in case you do not have a workspace yet:

mkdir -p ~/ros/src && cd ~/ros/src
git clone https://github.com/JKBehrens/mujoco-ros.git
cd ..
catkin build

Run tests

All tests should pass if the installation was successful.

cd ~/ros && catkin run_tests mujoco_ros_control && catkin_test_results build/mujoco_ros_control/
...
Summary: X tests, 0 errors, 0 failures, 0 skipped
where X >= 4

Simple 1 DOF Example:

roslaunch mujoco_ros_control start_simple_robot.launch
roslaunch mujoco_ros_control rviz.launch

Simulation of Kinova gen 3 with Robotiq 852f gripper:

see my other repository: coming soon!

Control the camera in mujoco via ROS

You can control the camera in mujoco (images published on /<node_name>/rgb).

rosrun mujoco_ros_control camera_control x y z rot elev dist

Resources

About

Control a robot in mujoco through ROS and ros_control

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published