Robotics StackExchange | Archived questions

Robot is levitating in Gazebo

I also asked this same question here https://answers.ros.org/question/311520/robot-is-levitating-in-gazebo/ , was not sure which forum was most appropriate.

ROS Melodic. Latest code is here https://github.com/lukewebdev/SCARA-5...

Running: roslaunch scara_52900 all.launch

results in the robot appearing in the air instead of on the ground. I'm sure this is something really simple but have not been able to figure it out yet.

Asked by lukewd on 2018-12-26 21:43:26 UTC

Comments

I noticed if I adjust the Z to be negative in the fixed joint, like this

the robot moves lower to the ground. But I don't understand why this is necessary given that the other elements start at 0. What am I missing? How much negative Z should I put?

Asked by lukewd on 2018-12-26 22:19:44 UTC

Answers

My guess would be the args="-z 1.0" on https://github.com/lukewebdev/SCARA-52900/blob/263a49f74629f037b894347d42b3e13a6cbac5db/launch/gazebo.launch#L24. The command line arguments to spawn_model can be used to position the model anywhere in the world when the model is spawned.

Asked by azeey on 2018-12-26 21:51:53 UTC

Comments