Commit a49388a1 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

adapted to new subscriber API

parent ad7a2b5f
......@@ -45,7 +45,7 @@ void SubscriberLaser2d::initialize(ros::NodeHandle& nh, const std::string& topic
void SubscriberLaser2d::callback(const sensor_msgs::LaserScan::ConstPtr& msg)
{
setLastStamp(msg->header.stamp);
updateLastHeader(msg->header);
if(msg->ranges.empty())
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment