ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

As suggested by @gustavo.velascoh and @devesh, one can modify src/stageros.cpp. You can find these two lines in src/stageros.cpp which gives you a hint:

//@todo Publish stall on a separate topic when one becomes available
//this->odomMsgs[r].stall = this->positionmodels[r]->Stall();

Note that Stall() should be Stalled().

In my case:

if(this->positionmodels[r]->Stalled()){
        // do something
}