Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hello,

This line looks wrong:

this->mySubscriber = node->Subscribe("/gazebo/default/table_tennis_ball/ball/my_contact",CollisionUpdates);

Try with this:

this->mySubscriber = node->Subscribe("/gazebo/default/table_tennis_ball/ball/my_contact", &ModelPush::CollisionUpdates, this);

Regards