在laser接受类 写上boost::mutex;
例子
class A
{
void laserscancallback()
{
boost::mutex::scoped_lock lock(laser_mutex);
}
private:
boost::mutex laserscan;
};
在laser接受类 写上boost::mutex;
例子
class A
{
void laserscancallback()
{
boost::mutex::scoped_lock lock(laser_mutex);
}
private:
boost::mutex laserscan;
};