mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
fixed 2 warnings...
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/ros-pkg@309 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -79,14 +79,14 @@ void velocityReceivedCallback(const geometry_msgs::TwistConstPtr & msg)
|
||||
commands.push_back(v);
|
||||
|
||||
// 10 Hz max
|
||||
while(commands.size() > nbCommands)
|
||||
while(commands.size() > (unsigned int)nbCommands)
|
||||
{
|
||||
ROS_WARN("Too many commands (%zu) > %d, removing the oldest...", commands.size(), nbCommands);
|
||||
//remove the oldest
|
||||
commands.pop_front();
|
||||
}
|
||||
|
||||
if(commands.size() == nbCommands)
|
||||
if(commands.size() == (unsigned int)nbCommands)
|
||||
{
|
||||
actionsUpdated = true;
|
||||
publish();
|
||||
|
||||
Reference in New Issue
Block a user