Skip to content
Snippets Groups Projects
Commit c0ec9405 authored by jcarpent's avatar jcarpent
Browse files

[Python] Fix relative path for model files and dirs

parent 5ce64386
No related branches found
No related tags found
No related merge requests found
import unittest
import pinocchio as se3
import numpy as np
import os
from pinocchio.robot_wrapper import RobotWrapper
# Warning : the paths are here hard-coded. This file is only here as an example
list_py = ["/local/fvalenza/devel/src/pinocchio/models","titi"]
robot = RobotWrapper("/local/fvalenza/devel/src/pinocchio/models/romeo.urdf",list_py, se3.JointModelFreeFlyer())
romeo_model_path = os.path.abspath(os.path.join(current_file, '../models'))
romeo_model_file = romeo_model_path + "/romeo.urdf"
list_hints = [romeo_model_path,"titi"]
robot = RobotWrapper(romeo_model_file,list_hints, se3.JointModelFreeFlyer())
robot.initDisplay()
robot.loadDisplayModel("world/pinocchio")
......
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