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:
matlabbe
2011-08-23 18:48:40 +00:00
parent db8606effd
commit 451766ce04
+2 -2
View File
@@ -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();