Ask Your Question

How to modify the initial orientation (and position) of a robot model

asked 2016-11-08 16:06:08 -0500

GlenH gravatar image

I have a urdf model of a robot that I inherited. I've built a ROS package around it. When I load it into Gazebo, it ends up being below the floor place, so it "hangs" underneath the floor due to the collision detection on the feet not allowing them to fall through the floor. The rest of the robot is invisible under the floor unless I make everything transparent.

I've tried changing the origin of the parent node of the URDF model, and I've also tried passing (x, y, z, r, p, y) parameters in the args list in the launch file. Neither one seems to change the behavior in any way.

How do you specify an initial orientation and position for a model?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-11-08 19:49:01 -0500

JoshMarino gravatar image

You can do so in the URDF file by specifying a world link and a joint (fixed usually) that connects world link to your base link. In the joint you control the position and orientation using the pose argument.

edit flag offensive delete link more


I thought that technique was for fixed robots? Mine is mobile.

GlenH gravatar image GlenH  ( 2016-11-09 13:04:20 -0500 )edit

Your Answer

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

Add Answer

Question Tools



Asked: 2016-11-08 16:06:08 -0500

Seen: 896 times

Last updated: Nov 08 '16