Closed beta1scat closed 3 years ago
When I use
model = pin.buildModelFromUrdf(URDF)
there is no error.
@proyan Could you help on this?
I think ROS_PACKAGE_PATH=/home/niu/catkin_ws/src
should make the job.
Hi @beta1scat,
The point of example robot data is to allow an easy
from example_robot_data import load
robot = load('ur5')
Wouldn't this suit your needs ?
You can also precise the package dirs as follows:
robot = RobotWrapper.BuildFromURDF(URDF,package_dirs=['/home/niu/catkin_ws/src'])
I will close as the problem will be solved from mines or @nim65s' suggestions
Thank you very much! @jcarpent @nim65s All your methods are OK!
System: Ubuntu 18.04 ROS: Melodic Pinocchio: robotpkg-py36-pinocchio
I am learning Pinocchio tutorials: https://gepettoweb.laas.fr/doc/stack-of-tasks/pinocchio/master/doxygen-html/md_doc_d-practical-exercises_1-directgeom.html
I have cloned package "example-robot-data" from https://github.com/Gepetto/example-robot-data in my ROS catkin workspace and build successed. But when I want to use URDF file in ROS package "example-robot-data" with my python scripts, an error occered:
ValueError: Mesh package://example-robot-data/robots/solo_description/meshes/obj/with_foot/solo_body.obj could not be found.
My scripts is :
I have sourced: devel/setup.bash and ROS_PACKAGE_PATH is OK. My ~/.bashrc file is:
ROS_PACKAGE_PATH:
ROS_PACKAGE_PATH=/home/niu/catkin_ws/src/example-robot-data:/opt/ros/melodic/share