How to change the static attribute of a model by msgs?
The name of a existing model is "ball".My source is:
transport::PublisherPtr modelPub = this->node->Advertisemsgs::Model("~/model/modify");
msgs::Model msg;
msg.set_name("ball");
msg.set_ is_ static(true);;
modelPub->Publish(msg);
Thanks!
Asked by Sam on 2014-03-28 09:26:02 UTC
Answers
That is the basic pseudo-code for publishing a message, but we don't have any tests that switch a model between static and dynamic. I'm not sure it will work, since static models are initialized differently than dynamic models. Please file an issue if this capability is important to you.
Asked by scpeters on 2014-03-28 19:18:04 UTC
Comments