Open HaFred opened 3 years ago
Broadcast is more like a behavior description.
as_ = new MoveBaseActionServer(ros::NodeHandle(), "move_base", boost::bind(&MoveBase::executeCb, this, _1), false);
srv_start_spin = priv_nh.advertiseService("spin_srv", &SpinApp::doRobotSpinServiceCb, this); // object to call srv_func on
Needs to specify this
as the tracked_object
parameter (see here).
NodeHandles Lookup Materials
http://wiki.ros.org/roscpp/Overview/NodeHandles The Doc API
Publish & Advertise
http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28c%2B%2B%29 Publisher is more like an identity for a node, specifically with regard to a certain topic while doing such publisher-subscriber identity discussion. The
advertise()
for the publisher node is shown in the above link's comments.