Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for loading URDF models in MORSE #788

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

severin-lemaignan
Copy link
Contributor

This PR implements URDF support in MORSE. Mostly the work of @jbaudisch, with the help of myself. This closes #547.

A few samples with the Pepper and Meka robots:

meka

pepper

The basics seem to work. Probably still many bugs, but at this stage, broader testing by more people would be useful.

To import your model, simply create a builder script, passing a .urdf file to the constructor of your robot (instead of a .blend file). For instance:

from morse.builder import *

# Add robot from its URDF description
robot = Robot("path/to/my/robot.urdf", name="MyRobot")

# then, standard BUilder script. For instance:

# Append an actuator to the robot
motion = MotionVW()
robot.append(motion)

# Append a sensor to the robot
pose = Pose()
pose.translate(z = 0.75)
robot.append(pose)

# Configure the robot on the 'socket' interface
robot.add_default_interface('socket')

env = Environment('indoors-1/indoor-1')

morse/testing/urdf contains 3 examples (R2D2, Pepper and Meka).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support import of URDF models
2 participants