ros cpp segmentation fault

在laser接受类 写上boost::mutex;

例子

class A

{

void laserscancallback()

{

boost::mutex::scoped_lock lock(laser_mutex);

}

private:

boost::mutex laserscan;

};

猜你喜欢

转载自blog.csdn.net/fly1ng_duck/article/details/83302439