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

using rviz models in gazebo

asked 2012-07-17 02:21:07 -0500

Sanket_Kumar gravatar image

updated 2012-07-17 05:31:51 -0500

i have created a robot model for rviz in urdf format.....how can i use this model on gazebo...i mean what changes do i have to make???

edit retag flag offensive close merge delete

Comments

thnks @Erwan R. it worked :-)

Sanket_Kumar gravatar image Sanket_Kumar  ( 2012-07-17 03:46:24 -0500 )edit

but there is only one problem whenever i set static="false" my object runs into a corner of my world

Sanket_Kumar gravatar image Sanket_Kumar  ( 2012-07-17 03:54:16 -0500 )edit

Not sure about it but static prevents objects to move (another point of view required). If set to false and your object is colliding another one, force effects will throw your object away.

Erwan R. gravatar image Erwan R.  ( 2012-07-17 04:16:24 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
3

answered 2012-07-18 04:28:33 -0500

Sanket_Kumar gravatar image

updated 2012-07-18 04:42:57 -0500

hey i found a command that can convert .urdf files to .model files for gazebo

rosrun gazebo urdf2model -f basic.urdf -o basic.model
edit flag offensive delete link more

Comments

??? Gazebo provides several tools that you can check there. I don't know what your application is, but you can use both urdf and models. I don't know if there're equivalent.

Erwan R. gravatar image Erwan R.  ( 2012-07-18 04:32:48 -0500 )edit

but in my gazebo i m not able to spawn urdf files my gazebo always crashes

Sanket_Kumar gravatar image Sanket_Kumar  ( 2012-07-18 04:38:33 -0500 )edit

so this is better option

Sanket_Kumar gravatar image Sanket_Kumar  ( 2012-07-18 04:38:59 -0500 )edit

The final solution is your choice, but maybe you could describe more the problem to understand why spawning urdf files make gazebo crash. Urdf files should spawn as well as models, so maybe there is a bug to be reported or a wrong practice to correct. But that's your choice.

Erwan R. gravatar image Erwan R.  ( 2012-07-18 05:33:07 -0500 )edit
1

thnk u this troubled one of my collegues for days

gpsinghsandhu gravatar image gpsinghsandhu  ( 2012-08-10 05:23:37 -0500 )edit
3

answered 2012-07-17 03:04:40 -0500

Erwan R. gravatar image

URDF models can be spawned in Gazebo according this tutorial.

You have to ensure that all required fields in urdf are present (visual but also collision, inertia ...) to be sure that you model will be displayed.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-07-17 02:21:07 -0500

Seen: 1,140 times

Last updated: Jul 18 '12