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

Revision history [back]

If you are calling the advertiseService function within that class, you may call it like so:

c++ ros::ServiceServer auction_service = n.advertiseService(PACKAGE_NAME + "/auction", &trader::Trader::auctionCB, this);

Should work!

If you are calling the advertiseService function within that class, you may call it like so:

c++ ros::ServiceServer auction_service = n.advertiseService(PACKAGE_NAME + "/auction", \ &trader::Trader::auctionCB, this);

Should work!

If you are calling the advertiseService function within that class, you may call it like so:

ros::ServiceServer auction_service = n.advertiseService(PACKAGE_NAME + "/auction", \ &trader::Trader::auctionCB, this);

Should work!