ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Pose and orientation of my robot is incorrect in Gazebo and RViz

asked 2017-01-05 02:10:45 -0600

zakizadeh gravatar image

Pose and orientation of my robot is incorrect in Gazebo and RViz .

I have exported the URDF from Solidworks using solidworks to URDF plugin. I didn't modify any option in dialogues opened during export. Then i created an URDF package in ROS workspace and spawned the robot model into the world which resulted in inverted pose of the robot as shown in picture.

my xacro file :wrist

image description

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-10-31 00:24:50 -0600

trejkev gravatar image

There are two things that I think might be the issue, number 1, when you activate physics in Gazebo it falls aside because of its center of gravity or so, reason why you see it that way, number 2, you are using a launch file to call the model, and there you might be modifying the orientation of the model.

For solving number one (number two may vary), if you want the model to be fixed in the arena you can add the static attribute to the base of your model <static>true</static>, and also, to be 100% sure everything is ok, check if the base of your model is oriented the right way in the model file, this is the attribute you have to look for <pose>x y z roll pitch yaw</pose>.

x: Pose on the x-axis. y: Pose on the y-axis. z: Pose on the z-axis. Roll: Rotation on the x-axis. Pitch: Rotation on the y-axis. Yaw: Rotation on the z-axis.

Hope this helps!

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



Asked: 2017-01-05 02:10:45 -0600

Seen: 541 times

Last updated: Oct 31 '21