Robotics StackExchange | Archived questions

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

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

Asked by zakizadeh on 2017-01-05 03:10:45 UTC

Comments

Answers

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 true, 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 x y z roll pitch yaw.

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!

Asked by trejkev on 2021-10-31 00:24:50 UTC

Comments