Robotics StackExchange | Archived questions

Set is_static through service call

Hey gang,

I'm currently wrestling with an annoying problem. I am trying to simulate putting new tires on a car in Gazebo. I have models of the Wheels, and the hubs which they sit on. Currently, there are three "studs" which line up with three matching holes on the Wheel.

When I spawn the wheel on the hub, it looks fine at first. However, the tire will slowly wiggle itself off of the hub, in about 30 seconds.

I am looking for a method to stop physical simulation on the Wheel through a python script, which I would run once the tire is lifted into place.

However, I can't find an appropriate service call to set the is_static property of a model. How can I achieve this?

Asked by Peaches491 on 2014-02-07 16:19:44 UTC

Comments

Are you using gazebo with ros?

Asked by scpeters on 2014-02-07 19:17:52 UTC

Yes. Version 2.0

Asked by Peaches491 on 2014-02-07 19:22:47 UTC

Answers

Gazebo currently doesn't have service calls.

You could write a model plugin that creates a ROS service. The service could then call SetStatic on the model.

Asked by nkoenig on 2014-02-21 14:16:59 UTC

Comments