Skip to content

About

The OpenDubs robot's description, and the whole robot (with openarm_assets' arms) as one MuJoCo model gafro reads

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

opendubs_assets

The OpenDubs robot: its description (the chassis, the Z-axis lift and the pan/tilt head) and the whole robot, with openarm_assets' arms on the lift, as one MuJoCo model that gafro reads.

What is here

Path What
models/opendubs/ The robot description: opendubs.xml (MJCF), its meshes, dimensions.yaml (where every number came from), gen_urdf.py and the URDFs it writes, variants.py. Moved, unchanged, from the OpenDubs repository (PROVENANCE.json).
models/generated/opendubs.xml The whole robot, the model the robot runs on and the one simulated: the arms, and each hand a control group of its finger joints.
configs/node.yaml, configs/node_hands.yaml gafro-robot-node configs of the whole robot: openarm_assets' arm configs with this model. A robot's config extends them as opendubs_assets:configs/node.yaml.

The whole robot

python -m opendubs_assets.assembly writes the generated model (it is committed, so you do not need to run it to use it):

  • The arms are openarm_assets.assembly.build_openarm's, as openarm-driver runs them: joint 2 capped for the head, the driver's velocity limit, and the gafro decorations (kinematic chains, task spaces, control groups, the collision cover).
  • They attach to the lift platform, so each arm's kinematic chain starts at the lift (zaxis): gafro's forward kinematics, reach and self-collision see the real height. The lift is in each arm's task space but not controlled; no control group commands the lift or the head yet, so on hardware only the arms' and the hands' drivers are needed (openarm-driver's openarm and openarm_hand). On hardware nothing reports the lift's height to gafro yet, so it reads 0 until a driver does.
  • gafro's model has a fixed root, so the chassis is welded: its freejoint, the wheels' and rollers' joints and the drive are left out. The wheels stay as geometry.
  • The element names are openarm_assets' (openarm_right_joint1, right_arm, bimanual, ...), so its node configs apply unchanged.
  • The arms' meshes are openarm_assets' own; nothing is copied. The model names every mesh below the directory the two packages are installed in (opendubs_assets/models/opendubs/meshes/..., openarm_assets/models/openarm/meshes/...), so an install of both finds them. In a source checkout or an editable install the packages are apart: get_generated_model_path() lays them side by side with two symlinks in ~/.cache/opendubs_assets/site and returns the model's path there. Load the model through it rather than by its path in the checkout.
import gafro, mujoco
from opendubs_assets import get_generated_model_path

path = str(get_generated_model_path())
system = gafro.SystemSerialization.load(path)       # 21 joints: the lift, the head, both arms and their fingers
model = mujoco.MjModel.from_xml_path(path)

The geometry is real; the dynamics are not. Read the banner at the top of models/opendubs/opendubs.xml before reading anything about force, timing or mass out of these files.

Tests

pytest tests

The generated models must be what the generator builds; the chassis welded and the lift and head joints; each arm's chain through the lift with only its seven joints controlled; gafro's tool pose equal to MuJoCo's at random arm configurations and lift heights; every arm joint with its torque, velocity and position command mode.

Licences

  • The OpenDubs description (models/opendubs/: CAD meshes, opendubs.xml, dimensions.yaml): CERN-OHL-W-2.0, copyright The OpenDubs Authors (LICENSE-HARDWARE).
  • Code, the moved generators included: Apache-2.0 (LICENSE-CODE).

About

The OpenDubs robot's description, and the whole robot (with openarm_assets' arms) as one MuJoCo model gafro reads

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages