Gepetto / example-robot-data

Set of robot URDFs for benchmarking and developed examples.
BSD 3-Clause "New" or "Revised" License
142 stars 50 forks source link

always try to import MODEL_DIR and DATA_SOURCE_DIR #169

Closed fabinsch closed 1 year ago

fabinsch commented 1 year ago

Hello, I'm currently using example-robot-data to have access to different urdf files. But in my case, I do not want to use the RobotLoader, but use pinocchio to build my model from URDF directly. I noticed, that you can do

import example_robot_data as erd
erd.getModelPath()  # of course this fails
erd.path.EXAMPLE_ROBOT_DATA_MODEL_DI

but you cannot directly access erd.path after loading the python module. I think it can be useful in general to have access to both EXAMPLE_ROBOT_DATA_MODEL_DIR and EXAMPLE_ROBOT_DATA_SOURCE_DIR even without calling a specific function before.

nim65s commented 1 year ago

I'm not sure I understand what you need, but anyway this is not going to hurt anybody else :)