laserscanner_mild.cpp
Go to the documentation of this file.
1 
19 
21 {
25 }
26 
27 void Laserscanner_MILD::laserScanCallback(const sensor_msgs::LaserScan::ConstPtr& msg)
28 {
29  newData(msg);
30 }
31 
33 {
34  active = true;
36  a = n.subscribe("scan", 1000, &Laserscanner_MILD::laserScanCallback, this);
37  while (active)
38  {
39  ros::spinOnce();
40  }
41  n.shutdown();
42  std::cout << "Scanner stopped..." << std::endl;
43 }
44 
46 {
47  active = false;
48 }
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
void newData(const sensor_msgs::LaserScan::ConstPtr &msg)
void laserScanCallback(const sensor_msgs::LaserScan::ConstPtr &msg)
ROSCPP_DECL void spinOnce()
ros::Subscriber a


asr_mild_calibration_tool
Author(s): Aumann Florian, Heller Florian, Meißner Pascal
autogenerated on Mon Dec 2 2019 03:11:43