33 #include <std_msgs/Float64.h> 54 pub = private_nh.
advertise<std_msgs::Float64>(
"out", 10);
58 void callback(
const std_msgs::Float64::ConstPtr& input)
60 std_msgs::Float64Ptr output(
new std_msgs::Float64());
61 output->data = input->data +
value_;
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ros::NodeHandle & getPrivateNodeHandle() const
void callback(const std_msgs::Float64::ConstPtr &input)
void publish(const boost::shared_ptr< M > &message) const
bool getParam(const std::string &key, std::string &s) const
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
PLUGINLIB_EXPORT_CLASS(test_nodelet::NodehandleTest, nodelet::Nodelet)
#define NODELET_DEBUG(...)