How to parse urdf from tutorial in hydro [closed]

asked 2013-12-28 05:41:38 -0500

richkappler gravatar image

updated 2013-12-31 06:34:19 -0500

tfoote gravatar image

I was working my way through the urdf tutorials here and couldn't get it to work, figured it out and thought I'd post it here (not sure if that is kosher, but I'm sure someone will tell me). First off, as discussed here you don't run urdfdom check_urdf in hydro, just run check_urdf. With that in hand I still couldn't get it to work using check_urdf src/urdf_tutorials my_robot.urdf or check_urdf /src/urdf_tutorials my_robot.urdf

When I cd'd into the urdf_tutorials folder though (your folder name will vary, urdf_tutorials is what I named the folder where I'm running through this tutorial) and just ran check_urdf my_robot.urdf it worked perfectly.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2016-11-08 20:05:24.912805

Comments

Also, once you've added the origins and axis, run urdf_to_graphiz my_robot.urdf to get it to work. rosrun urdfdom urdf_to_graphiz will fail.

richkappler gravatar imagerichkappler ( 2013-12-28 05:54:02 -0500 )edit

May be this tutorial is not updated to work in Hydro I get following error: [ERROR] [1389070518.866798462]: Could not open file [/src/testbot_description/my_robot.urdf] for parsing. [ERROR] [1389070518.866904970]: Failed to parse urdf file

Kunal gravatar imageKunal ( 2014-01-06 17:01:33 -0500 )edit

Not sure why you're having trouble, the above was done in Hydro. What OS are you running? You will need to give me more info if I'm to help you. What command did you enter for example?

richkappler gravatar imagerichkappler ( 2014-01-07 08:26:07 -0500 )edit

I was going through following tutorial http://wiki.ros.org/urdf/Tutorials/Parse%20a%20urdf%20file I have ubuntu precise Do I have to make any change in parcer.cpp? We need to add some statements in CMakeList.txt. Can you elaborate that if possible? I will try the tutorial again from the beginning to see if I have missed anything

Kunal gravatar imageKunal ( 2014-01-07 09:10:08 -0500 )edit

Did you compile it? cd catkin_ws catkin_make

richkappler gravatar imagerichkappler ( 2014-01-07 09:11:46 -0500 )edit

I did compile it using in root directory i.e catkin_ws. when it says to modify CMakeList.txt, which CMakeList we have to modify? I modified the one in testbot_description folder.

Kunal gravatar imageKunal ( 2014-01-07 12:33:16 -0500 )edit

Modify the CMake file in the directory where you created teh package. From your previous comments, looks like testbot_description

richkappler gravatar imagerichkappler ( 2014-01-08 10:43:57 -0500 )edit

Yes I did change the same CMake file. check_urdf works fine though. I will go through the tutorial again to see I get the same error.

Kunal gravatar imageKunal ( 2014-01-09 07:07:42 -0500 )edit