question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It is not possible to add new URDF robots in different path of models

See original GitHub issue

I am giving my robotic class using this amazing tool in python library, but I found a problem. In an exercise, I want that student use a specific urdf, but It is not possible to view the mesh because Mesh.filename use an absolute path àbspath to the models of the toolbox. I know that this is the only error, because I change to the specific path and works, but I do not find which could be the best solution in the architecture of your code

https://github.com/petercorke/robotics-toolbox-python/blob/276efaaf3c67558cf2ef17e0360b6821fb8d7bfd/roboticstoolbox/tools/urdf/urdf.py#L301

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
petercorkecommented, Feb 19, 2021

Ok, so default to current folder, then fallback to the distribution. We are thinking about putting the models in a separate package, they make the RTB package very large and don’t change much. This won’t affect operation from user perspective.

1reaction
kxxtcommented, Jun 6, 2021

I’ve worked out a solution. No more need for chdir. My modified version: https://github.com/kxxt/swift/ I’ll open a pull request soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

URDF robot model not loading correctly in Gazebo
I tried to change the robot model from mp_400 to other from the same package (e.g. mpo_700, in the launcher file) but then...
Read more >
[ROS2 Q&A] 231 - How to load URDF files from Github
Your browser can't play this video. Learn more. Switch camera.
Read more >
Spawn a URDF model in Gazebo with ROS2 - YouTube
Step by step, learn how to spawn a URDF robot model into a Gazebo world using ROS2 and the differences with respect to...
Read more >
Tutorial: Using a URDF in Gazebo
URDF can only specify the kinematic and dynamic properties of a single robot in isolation. URDF can not specify the pose of the...
Read more >
importrobot - MathWorks
Specify the URDF character vector. This character vector is a minimalist description for creating a valid robot model. URDFtext = '<?xml version="1.0" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found