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_;
void publish(const boost::shared_ptr< M > &message) const
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
void callback(const std_msgs::Float64::ConstPtr &input)
ros::NodeHandle & getPrivateNodeHandle() const
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
PLUGINLIB_EXPORT_CLASS(test_nodelet::NodehandleTest, nodelet::Nodelet)
bool getParam(const std::string &key, std::string &s) const
#define NODELET_DEBUG(...)