Ask Your Question
0

Questions of .urdf.xacro file [closed]

asked 2014-04-19 17:35:14 -0600

Yantian_Zha gravatar image

I have 3 questions: First, what is the .urdf.xacro file? Second, how convert .urdf.xacro to .urdf, which can be visualized in Rviz? Third, whether there is other ways to visualize .urdf.xacro file? Thanks!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Yantian_Zha
close date 2014-04-21 16:54:43

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-04-19 19:38:53 -0600

Ken_in_JAPAN gravatar image

You might have read an article on this page ( http://wiki.ros.org/urdf/Tutorials/Us... ). Xacro file is macro file of urdf. Xacro file allow us to make it easier to maintain the robot description files. So you can convert urdf.xacro to urdf in launch.

< param name="robot_description" 
   command="$(find xacro)/xacro.py '$(find pr2_description)/robots/pr2.urdf.xacro'" />

If you have a turtlebot, I think that you have launched minimal.launch. The description.launch.xml in /turtlebot_bringup/launch/includes also describes robot_description for a turtlebot. Rviz need a robot_description to show a robot model.

edit flag offensive delete link more

Comments

Thanks, and I found "rosrun xacro xacro.py `rospack find turtlebot_description`/robots/graveyard/turtlebot.urdf.xacro -o ~/exp1_ws/src/trunk/urdf_tutorial/turtlebot.urdf " is also worked! But actually I want to rviz the complete turtlebot. I'm failed in processing turtlebot.urdf.xacro, do you know how?

Yantian_Zha gravatar imageYantian_Zha ( 2014-04-19 21:15:27 -0600 )edit

Hello @Yantian_Zha : I'm sorry, I just answer your original question. If you have not executed simulator and are beginner of ROS, I recommend you to try segbot simulator of this page( http://answers.ros.org/question/123116/how-to-execute-navigation-experimental/ )

Ken_in_JAPAN gravatar imageKen_in_JAPAN ( 2014-04-20 11:43:11 -0600 )edit

Thanks, Ken_in_JAPAN!

Yantian_Zha gravatar imageYantian_Zha ( 2014-04-20 15:25:24 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-04-19 17:35:14 -0600

Seen: 1,392 times

Last updated: Apr 19 '14