Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

physics::Model::SetScale() only works sometimes

I have a ModelPlugin that scales models by calling physics::Model::SetScale(). It works consistently in one project that I'm working on but not in the other. In the other project, it almost never works. One time after I rebooted, it worked for about an hour.

I have followed my scales through the code to World.cc line 2666: this->dataPtr->modelPub->Publish(msg); Everything appears to behave correctly up to that point. I haven't figured out what happens to the message after that.

Does anyone know what might be the problem? I found one other claim of SetScale() not working: http://answers.gazebosim.org/question/19509/problems-publishing-to-visual-to-change-the-scale-of-a-box-model/