Rviz and .urdf from Lego Digital Designer [closed]

asked 2012-08-22 02:28:55 -0600

camilla gravatar image

updated 2014-01-28 17:13:25 -0600

ngrennan gravatar image

I converted a model created with Lego Digital Designer in a .urdf file, but when I visualize it with rviz all the link positions are wrong. What do I do wrong?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-03-26 19:02:00.122708

Comments

Please add more details. What did you use to convert your file? How did you call it? How exactly are you visualizing it?

AHornung gravatar image AHornung  ( 2012-08-22 03:38:20 -0600 )edit

I created a model with Lego Digital Designer and save it as .lxf file then export it as .ldr file

camilla gravatar image camilla  ( 2012-08-22 04:07:25 -0600 )edit

then I used the command: rosrun nxt_lxf2urdf lxf2urdf.py robot.lxf robot.ldr > robot.urdf to get the .urdf file as stated in this tutorial: http://www.ros.org/wiki/nxt_lxf2urdf/Tutorials/Creating%20a%20simple%20robot%20model%20using%20lxf2urdf.py

camilla gravatar image camilla  ( 2012-08-22 04:08:10 -0600 )edit

Then I add <param name="robot_description" command="cat $(find nxt_lejos_proxy_mod)/robot.urdf"/> in my .launch file

camilla gravatar image camilla  ( 2012-08-22 04:09:13 -0600 )edit

Then I launch my nodes and rosrun rviz rviz. I can see the links but their positions are wrong

camilla gravatar image camilla  ( 2012-08-22 04:10:10 -0600 )edit

Obviously I renamed the links which refers to the sensors with the names that I use in the .yaml file

camilla gravatar image camilla  ( 2012-08-22 04:10:59 -0600 )edit

Can someone tell me what I do wrong and how can i visualize in the right way my model, please?

camilla gravatar image camilla  ( 2012-08-22 04:11:31 -0600 )edit