32 first_rcfg_call(true),
33 diagnostics_(node, private_nh, node_name)
35 boost::optional<velodyne_pointcloud::Calibration>
calibration =
data_->setup(private_nh);
47 tf_ptr_ = boost::make_shared<tf::TransformListener>();
65 node.
advertise<sensor_msgs::PointCloud2>(
"velodyne_points", 10);
67 srv_ = boost::make_shared<dynamic_reconfigure::Server<TransformNodeCfg>> (private_nh);
68 dynamic_reconfigure::Server<TransformNodeCfg>::CallbackType
f;
70 srv_->setCallback (f);
95 velodyne_pointcloud::TransformNodeConfig &config, uint32_t level)
98 data_->setParameters(config.min_range, config.max_range,
99 config.view_direction, config.view_width);
123 data_->scansPerPacket()));
146 for (
size_t i = 0; i < scanMsg->packets.size(); ++i)
148 container_ptr->computeTransformation(scanMsg->packets[i].stamp);
void publish(const boost::shared_ptr< M > &message) const
std::string getPrefixParam(ros::NodeHandle &nh)
void setHardwareID(const std::string &hwid)
std::string resolve(const std::string &prefix, const std::string &frame_name)
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
#define ROS_DEBUG_STREAM(args)
uint32_t getNumSubscribers() const
#define ROS_INFO_STREAM(args)
void subscribe(ros::NodeHandle &nh, const std::string &topic, uint32_t queue_size, const ros::TransportHints &transport_hints=ros::TransportHints(), ros::CallbackQueueInterface *callback_queue=0)
#define ROS_ERROR_STREAM(args)