34 boost::optional<velodyne_pointcloud::Calibration>
calibration =
data_->setup(private_nh);
46 tf_ptr_ = boost::make_shared<tf::TransformListener>();
64 node.
advertise<sensor_msgs::PointCloud2>(
"velodyne_points", 10);
66 srv_ = boost::make_shared<dynamic_reconfigure::Server<TransformNodeCfg>> (private_nh);
67 dynamic_reconfigure::Server<TransformNodeCfg>::CallbackType
f;
69 srv_->setCallback (f);
94 velodyne_pointcloud::TransformNodeConfig &config, uint32_t level)
97 data_->setParameters(config.min_range, config.max_range,
98 config.view_direction, config.view_width);
122 data_->scansPerPacket()));
145 for (
size_t i = 0; i < scanMsg->packets.size(); ++i)
147 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)