Ask Your Question
1

Gazebo Spawns My Model Really, Really Far Away

asked 2013-01-18 07:30:22 -0500

MartinW gravatar image

updated 2014-04-20 14:09:48 -0500

ngrennan gravatar image

Hello all,

I am trying to spawn my robots urdf model in gazebo using

rosrun gazebo spawn_model -file H20_urdf.urdf -urdf -model Robot -z 0.5

But it spawns my robot way out in the middle of no where, here is an image of where it is in gazebo.

My console output says that it spawn successfully, but the robot has spawned on its side and not 0.5m above the origin.

[INFO] [WallTime: 1358537000.298533] [0.000000] waiting for service /gazebo/spawn_urdf_model
spawn status:  SpawnModel: successfully spawned model
root@ubuntu:~/ros_workspace/learning_urdf#

Does anyone know why gazebo is spawning my object incorrectly?

Regards, Martin

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-01-18 22:48:14 -0500

Davide Zanin gravatar image

Hello, I think the problem is that the robot intersects with the floor, try increasing the value of z!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-01-18 07:30:22 -0500

Seen: 152 times

Last updated: Jan 18 '13