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

Error while parsing the URDF file

asked 2013-09-16 02:44:57 -0600

pavanpatel gravatar image

updated 2013-09-16 13:04:51 -0600

bit-pirate gravatar image

while making URDF file,when i am going to run ./bin/parser my_robot.urdf i got following error:

[ERROR] [1379365363.499555623]: Could not open file [my_robot.urdf] for parsing.
[ERROR] [1379365363.499662656]: Failed to parse urdf file

plz tell me how to solve it.

edit retag flag offensive close merge delete

Comments

1

Please, explain more detailed your problem in the description, not in the title of your question.

gustavo.velascoh gravatar image gustavo.velascoh  ( 2013-09-16 03:03:25 -0600 )edit

What distro of ROS are you using?

gustavo.velascoh gravatar image gustavo.velascoh  ( 2013-09-16 18:20:03 -0600 )edit

4 Answers

Sort by ยป oldest newest most voted
3

answered 2014-02-07 02:52:09 -0600

jaimerv gravatar image

There is a dot missing in the second tutorial.

From your workspace, run: ~/catkin_ws$ ./devel/lib/testbot_description/parser ./src/testbot_description/urdf/my_robot.urdf

It worked for me.

edit flag offensive delete link more
1

answered 2013-09-24 05:58:18 -0600

Zargol gravatar image

updated 2013-09-24 06:03:31 -0600

test this one in the path of the urdf file (<path of="" urdf="" file=""> :~/catkin_ws/src/testbot_description/urdf$) ~/catkin_ws/devel/lib/testbot_description/parser ~/catkin_ws/src/testbot_description/urdf/my_robot.urdf)

edit flag offensive delete link more
0

answered 2013-09-16 03:04:07 -0600

updated 2013-09-16 18:22:07 -0600

You can use rosrun urdfdom check_urdf [YOUR_FILE].

EDIT 1:

This is from the tutorial:

  $ rosmake urdfdom_model              # only needed if installed from source
  $ rosrun urdf check_urdf my_robot.urdf  # older versions
  $ rosrun urdf_parser check_urdf my_robot.urdf # electric and fuerte
  $ rosrun urdfdom check_urdf my_robot.urdf # groovy
  $
  $ ## see footnote at bottom of page for why above commands are different

Check what distro you are using.

edit flag offensive delete link more
0

answered 2013-09-16 17:50:23 -0600

pavanpatel gravatar image

but "rosrun urdfom check_urdf [your_file]" is used to run urdf file....and i want to parse my urdf file..for more detail follow the below link

http://wiki.ros.org/urdf/Tutorials/Create%20your%20own%20urdf%20file

http://wiki.ros.org/urdf/Tutorials/Parse%20a%20urdf%20file

edit flag offensive delete link more

Comments

If this is a solution to your problem, please mark your question as answered. If it is only a comment, please use the comment function for such. Thanks.

bit-pirate gravatar image bit-pirate  ( 2013-09-16 18:52:44 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-09-16 02:44:57 -0600

Seen: 2,386 times

Last updated: Feb 07 '14