Skip to main content

Modern Robotics URDF Load Module

Project description

"mr_urdf_loader" Python Package Instructions

Dependency Requirement

numpy , modern_robotics , urdfpy should be preinstalled.

Installing the Package

  pip install mr_urdf_loader

Importing the Package

To import the package, we recommend using

from mr_urdf_loader import loadURDF
MRSetup = loadURDF(urdf_name)

Examples

1. Simple MR test

cd example/3DoF
python3 urdf_loader.py

image

2. Pybullet Simulation

cd example/3DoF
pip install pybullet
python3 sim.py

image

3. UR5 Simulation

cd example/ur5
python3 ur5_sim.py

image

Using the Package Locally

It is possible to use the package locally without installation. Download and place the package in the working directory. Note that since the package is not installed, you need to move the package if the working directory is changed. Importing is still required before using.

4. Pybullet Error

Pybullet의 경우 마지막 링크 urdf를 다음과 같이 inertial 정보를 기입하지 않는 경우 임의의 값으로 수정하여 Dynamics를 해석하는 듯 싶다.

<link name="eef_link" />

따라서 다음처럼 mass가 없는 링크에도 inertial 정보를 기입해야 Modern robotics library와 동일하게 계산된다.

<link name="eef_link">
  <collision>
      <geometry>
        <box size="0.00 0.00 0.00"/>
      </geometry>
      <origin rpy="0 0 0" xyz="0.00 0 0"/>
    </collision>
    <inertial>
      <mass value="0.0"/>
      <origin rpy="0 0 0" xyz="0.0 0.0 0.0"/>
      <inertia ixx="0.0" ixy="0.0" ixz="0.0" iyy="0.0" iyz="0.0" izz="0.0"/>
    </inertial>
</link>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mr-urdf-loader-0.0.10.tar.gz (7.4 MB view hashes)

Uploaded Source

Built Distribution

mr_urdf_loader-0.0.10-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page