Skip to content
Snippets Groups Projects
Commit ee1f5145 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[Doc] use os.path.join

parent 01ed6cac
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,10 @@
```py
from pinocchio.robot_wrapper import RobotWrapper
from os.path import join
PKG = '/opt/openrobots/share/'
URDF = PKG + 'ur5_description/urdf/ur5_gripper.urdf'
PKG = '/opt/openrobots/share'
URDF = join(PKG, 'ur5_description/urdf/ur5_gripper.urdf'@
robot = RobotWrapper(URDF, [PKG])
```
......
......@@ -4,9 +4,10 @@
```py
import pinocchio
from os.path import join
PKG = '/opt/openrobots/share/'
URDF = PKG + 'ur5_description/urdf/ur5_gripper.urdf'
PKG = '/opt/openrobots/share'
URDF = join(PKG, 'ur5_description/urdf/ur5_gripper.urdf')
robot = pinocchio.robot_wrapper.RobotWrapper(URDF, [PKG])
robot.initDisplay(loadModel=True)
......
......@@ -127,9 +127,10 @@ of pinocchio (available in the homedir of the VBox).
```py
from pinocchio.robot_wrapper import RobotWrapper
from os.path import join
PKG = '/opt/openrobots/share'
URDF = PKG + '/ur5_description/urdf/ur5_gripper.urdf'
URDF = join(PKG, 'ur5_description/urdf/ur5_gripper.urdf')
robot = RobotWrapper(URDF, [PKG])
```
......
......@@ -138,11 +138,12 @@ sudo apt install robotpkg-romeo-description
Romeo can be loaded with:
```py
from os.path import join
import pinocchio as se3
from pinocchio.romeo_wrapper import RomeoWrapper
PKG = '/opt/openrobots/share'
URDF = PKG + 'romeo_description/urdf/romeo.urdf'
URDF = join(PKG, 'romeo_description/urdf/romeo.urdf')
robot = RomeoWrapper(URDF, [PKG]) # Load urdf model
robot.initDisplay(loadModel=True)
......
......@@ -21,12 +21,13 @@ the tool. They are displayed when the robot moves.
Example of how to use the robot is has below.
```py
from os.path import join
import pinocchio as se3
from mobilerobot import MobileRobotWrapper
from pinocchio.utils import *
PKG = '/opt/openrobots/share'
URDF = PKG + '/ur5_description/urdf/ur5_gripper.urdf'
URDF = join(PKG, 'ur5_description/urdf/ur5_gripper.urdf')
robot = MobileRobotWrapper(URDF, [PKG])
robot.initDisplay(loadModel=True)
......
......@@ -3,6 +3,8 @@ Load 4 times the UR5 model, plus a plate object on top of them, to feature a sim
No optimization, this file is just an example of how to load the models.
'''
from os.path import join
from pinocchio import SE3
from pinocchio.robot_wrapper import RobotWrapper
from pinocchio.utils import rotate, zero, eye, se3ToXYZQUAT, urdf
......@@ -10,7 +12,7 @@ from pinocchio.utils import rotate, zero, eye, se3ToXYZQUAT, urdf
import numpy as np
PKG = '/opt/openrobots/share'
URDF = PKG + '/ur5_description/urdf/ur5_gripper.urdf'
URDF = join(PKG, 'ur5_description/urdf/ur5_gripper.urdf')
def loadRobot(M0, name):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment