ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Converting urdf to collada in ros2

asked 2023-06-08 11:50:19 -0600

valentino gravatar image

I am trying to convert an urdf file to collada using ros2. However, everything I find is related to ros1 and packages that are not updated to ros2 (e.g. collada_urdf).

Is there any package that replaced collada_urdf in ros2?

Note: I need this since I am trying to use IKFast Kinematics Solver (https://moveit.picknik.ai/humble/doc/...) for a custom robot. And during the conversion from urdf to collada (using the auto_create_ikfast_moveit_plugin.sh script) a few errors appear.

Converting urdf to Collada
[rospack] Error: package 'ur_description' not found
[librospack]: error while executing command
[ WARN] [1686223054.263217111]: failed to load resource package://ur_description/meshes/ur10/visual/base.dae
Document successfully written to robot.dae
Running openrave0.9.py --database inversekinematics --robot=/input/wrapper.xml --iktype=Transform6D --iktests=1000
could not import scipy.optimize.leastsq
2023-06-08 11:17:36,331 openrave [WARN] [plugindatabase.h:577 InterfaceBasePtr OpenRAVE::RaveDatabase::Create] Failed to create name fcl_, interface collisionchecker

I suspect these errors to be the cause for a later error of the Solver:

openravepy.databases.inversekinematics: testik, success rate: 0.000000, wrong solutions: 0.994000, no solutions: 0.006000, missing solution: 0.000000
Traceback (most recent call last):
  File "/usr/bin/openrave0.9.py", line 126, in <module>
    database.run(args=args)
  File "/usr/lib/python2.7/dist-packages/openravepy/_openravepy_0_9/databases/inversekinematics.py", line 1123, in run
    InverseKinematicsModel.RunFromParser(*args,**kwargs)
  File "/usr/lib/python2.7/dist-packages/openravepy/_openravepy_0_9/databases/inversekinematics.py", line 1111, in RunFromParser
    raise InverseKinematicsError(u'wrong rate %f > 0!'%wrongrate)
openravepy._openravepy_0_9.databases.inversekinematics.InverseKinematicsError: Inverse Kinematics Error
wrong rate 0.994000 > 0!
'docker run --rm --user 1000:1000 -v /tmp/ikfast.zpIG8H:/input --workdir /input -e HOME=/input fixed-openrave:latest openrave0.9.py --database inversekinematics --robot=/input/wrapper.xml --iktype=Transform6D --iktests=1000' failed with exec code 1:
[ros2run]: Process exited with failure 1

By converting from urdf to collada beforehand I want to circumvent these problems.

If you know a package or you know that the package not found error is not related to the low success rate of openrave please let me know.

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-15 02:47:59 -0600

jrtg gravatar image

I did not try this, but Gazebo has a Collada world exporter so maybe you can load your URDF in Gazebo and then export it using that plugin.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-06-08 11:50:19 -0600

Seen: 445 times

Last updated: Jun 15 '23