#include <laser.h>
Public Member Functions | |
Laser (crl::multisense::Channel *driver, const std::string &tf_prefix) | |
void | pointCloudCallback (const crl::multisense::lidar::Header &header) |
void | scanCallback (const crl::multisense::lidar::Header &header) |
~Laser () | |
Static Public Attributes | |
static const float | EXPECTED_RATE = 40.0 |
Private Member Functions | |
void | defaultTfPublisher (const ros::TimerEvent &event) |
tf::Transform | getSpindleTransform (float spindle_angle) |
void | publishSpindleTransform (const float spindle_angle, const float velocity, const ros::Time &time) |
void | publishStaticTransforms (const ros::Time &time) |
void | stop () |
void | subscribe () |
void | unsubscribe () |
Private Attributes | |
crl::multisense::Channel * | driver_ |
std::string | frame_id_ |
std::string | hokuyo_ |
sensor_msgs::JointState | joint_states_ |
ros::Publisher | joint_states_pub_ |
sensor_msgs::LaserScan | laser_msg_ |
tf::Transform | laser_to_spindle_ |
std::string | left_camera_optical_ |
crl::multisense::lidar::Calibration | lidar_cal_ |
std::string | motor_ |
tf::Transform | motor_to_camera_ |
sensor_msgs::PointCloud2 | point_cloud_ |
ros::Publisher | point_cloud_pub_ |
ros::Time | previous_scan_time_ |
ros::Publisher | raw_lidar_cal_pub_ |
ros::Publisher | raw_lidar_data_pub_ |
ros::Publisher | scan_pub_ |
std::string | spindle_ |
float | spindle_angle_ |
tf::TransformBroadcaster | static_tf_broadcaster_ |
boost::mutex | sub_lock_ |
int32_t | subscribers_ |
ros::Timer | timer_ |
multisense_ros::Laser::Laser | ( | crl::multisense::Channel * | driver, |
const std::string & | tf_prefix | ||
) |
void multisense_ros::Laser::defaultTfPublisher | ( | const ros::TimerEvent & | event | ) | [private] |
tf::Transform multisense_ros::Laser::getSpindleTransform | ( | float | spindle_angle | ) | [private] |
void multisense_ros::Laser::pointCloudCallback | ( | const crl::multisense::lidar::Header & | header | ) |
void multisense_ros::Laser::publishSpindleTransform | ( | const float | spindle_angle, |
const float | velocity, | ||
const ros::Time & | time | ||
) | [private] |
void multisense_ros::Laser::publishStaticTransforms | ( | const ros::Time & | time | ) | [private] |
void multisense_ros::Laser::scanCallback | ( | const crl::multisense::lidar::Header & | header | ) |
void multisense_ros::Laser::stop | ( | ) | [private] |
void multisense_ros::Laser::subscribe | ( | ) | [private] |
void multisense_ros::Laser::unsubscribe | ( | ) | [private] |
const float multisense_ros::Laser::EXPECTED_RATE = 40.0 [static] |
std::string multisense_ros::Laser::frame_id_ [private] |
std::string multisense_ros::Laser::hokuyo_ [private] |
sensor_msgs::JointState multisense_ros::Laser::joint_states_ [private] |
ros::Publisher multisense_ros::Laser::joint_states_pub_ [private] |
sensor_msgs::LaserScan multisense_ros::Laser::laser_msg_ [private] |
tf::Transform multisense_ros::Laser::laser_to_spindle_ [private] |
std::string multisense_ros::Laser::left_camera_optical_ [private] |
std::string multisense_ros::Laser::motor_ [private] |
tf::Transform multisense_ros::Laser::motor_to_camera_ [private] |
sensor_msgs::PointCloud2 multisense_ros::Laser::point_cloud_ [private] |
ros::Publisher multisense_ros::Laser::point_cloud_pub_ [private] |
ros::Time multisense_ros::Laser::previous_scan_time_ [private] |
ros::Publisher multisense_ros::Laser::raw_lidar_cal_pub_ [private] |
ros::Publisher multisense_ros::Laser::raw_lidar_data_pub_ [private] |
ros::Publisher multisense_ros::Laser::scan_pub_ [private] |
std::string multisense_ros::Laser::spindle_ [private] |
float multisense_ros::Laser::spindle_angle_ [private] |
tf::TransformBroadcaster multisense_ros::Laser::static_tf_broadcaster_ [private] |
boost::mutex multisense_ros::Laser::sub_lock_ [private] |
int32_t multisense_ros::Laser::subscribers_ [private] |
ros::Timer multisense_ros::Laser::timer_ [private] |