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

Revision history [back]

It might be dirty, but you can try with:

void callback(void* data) {
    static_cast<MyMessageConstPtr>(data) //if you need to
}

but I will strongly advice against this.