64 int h = ms / (1000 * 60 * 60);
65 int m = ms / (1000 * 60) - h * 60;
66 int s = ms / 1000 - h * 60 * 60 - m * 60;
67 int ms_ = ms - h * 60 * 60 * 1000 - m * 1000 * 60 - s * 1000;
70 str += QString().setNum(h) + QString(
" h ");
74 str += QString().setNum(m) + QString(
" min ");
78 str += QString().setNum(s) + QString(
" sec ");
80 if(ms_ || s || h || m)
82 str += QString().setNum(ms_) + QString(
" ms");
95 ROS_ERROR(
"\tMax range : %f",msg.maxRange);
96 ROS_ERROR(
"\tMin range : %f",msg.minRange);
97 ROS_ERROR(
"\tCone angle : %f",msg.coneAngle);
98 ROS_ERROR(
"\tFrequency : %f",msg.frequency);
100 ROS_ERROR(
"\t\tMean : %f",msg.noise.noiseMean);
101 ROS_ERROR(
"\t\tStd : %f",msg.noise.noiseStd);
102 ROS_ERROR(
"\tFrame id : %s",msg.frame_id.c_str());
104 ROS_ERROR(
"\t\tx : %f",msg.pose.x);
105 ROS_ERROR(
"\t\ty : %f",msg.pose.y);
106 ROS_ERROR(
"\t\ttheta : %f",msg.pose.theta);
117 ROS_ERROR(
"\tMax range : %f",msg.maxRange);
118 ROS_ERROR(
"\tMin range : %f",msg.minRange);
119 ROS_ERROR(
"\tMax angle : %f",msg.maxAngle);
120 ROS_ERROR(
"\tMin angle : %f",msg.minAngle);
121 ROS_ERROR(
"\tFrequency : %f",msg.frequency);
123 ROS_ERROR(
"\t\tMean : %f",msg.noise.noiseMean);
124 ROS_ERROR(
"\t\tStd : %f",msg.noise.noiseStd);
125 ROS_ERROR(
"\tFrame id : %s",msg.frame_id.c_str());
127 ROS_ERROR(
"\t\tx : %f",msg.pose.x);
128 ROS_ERROR(
"\t\ty : %f",msg.pose.y);
129 ROS_ERROR(
"\t\ttheta : %f",msg.pose.theta);
152 rmsg.initialPose.theta =
153 rmsg.initialPose.theta / 180.0 *
STDR_PI;
154 for(
unsigned int i = 0 ; i < rmsg.laserSensors.size() ; i++)
156 rmsg.laserSensors[i].maxAngle =
157 rmsg.laserSensors[i].maxAngle / 180.0 *
STDR_PI;
158 rmsg.laserSensors[i].minAngle =
159 rmsg.laserSensors[i].minAngle / 180.0 *
STDR_PI;
160 rmsg.laserSensors[i].pose.theta =
161 rmsg.laserSensors[i].pose.theta / 180.0 *
STDR_PI;
163 for(
unsigned int i = 0 ; i < rmsg.sonarSensors.size() ; i++)
165 rmsg.sonarSensors[i].coneAngle =
166 rmsg.sonarSensors[i].coneAngle / 180.0 *
STDR_PI;
167 rmsg.sonarSensors[i].pose.theta =
168 rmsg.sonarSensors[i].pose.theta / 180.0 *
STDR_PI;
170 for(
unsigned int i = 0 ; i < rmsg.rfidSensors.size() ; i++)
172 rmsg.rfidSensors[i].angleSpan =
173 rmsg.rfidSensors[i].angleSpan / 180.0 *
STDR_PI;
174 rmsg.rfidSensors[i].pose.theta =
175 rmsg.rfidSensors[i].pose.theta / 180.0 *
STDR_PI;
177 for(
unsigned int i = 0 ; i < rmsg.co2Sensors.size() ; i++)
181 rmsg.co2Sensors[i].pose.theta =
182 rmsg.co2Sensors[i].pose.theta / 180.0 *
STDR_PI;
184 for(
unsigned int i = 0 ; i < rmsg.thermalSensors.size() ; i++)
186 rmsg.thermalSensors[i].angleSpan =
187 rmsg.thermalSensors[i].angleSpan / 180.0 *
STDR_PI;
188 rmsg.thermalSensors[i].pose.theta =
189 rmsg.thermalSensors[i].pose.theta / 180.0 *
STDR_PI;
191 for(
unsigned int i = 0 ; i < rmsg.soundSensors.size() ; i++)
193 rmsg.soundSensors[i].angleSpan =
194 rmsg.soundSensors[i].angleSpan / 180.0 *
STDR_PI;
195 rmsg.soundSensors[i].pose.theta =
196 rmsg.soundSensors[i].pose.theta / 180.0 *
STDR_PI;
208 rmsg.initialPose.theta =
209 rmsg.initialPose.theta * 180.0 /
STDR_PI;
210 for(
unsigned int i = 0 ; i < rmsg.laserSensors.size() ; i++)
212 rmsg.laserSensors[i].maxAngle =
213 rmsg.laserSensors[i].maxAngle * 180.0 /
STDR_PI;
214 rmsg.laserSensors[i].minAngle =
215 rmsg.laserSensors[i].minAngle * 180.0 /
STDR_PI;
216 rmsg.laserSensors[i].pose.theta =
217 rmsg.laserSensors[i].pose.theta * 180.0 /
STDR_PI;
219 for(
unsigned int i = 0 ; i < rmsg.sonarSensors.size() ; i++)
221 rmsg.sonarSensors[i].coneAngle =
222 rmsg.sonarSensors[i].coneAngle * 180.0 /
STDR_PI;
223 rmsg.sonarSensors[i].pose.theta =
224 rmsg.sonarSensors[i].pose.theta * 180.0 /
STDR_PI;
226 for(
unsigned int i = 0 ; i < rmsg.rfidSensors.size() ; i++)
228 rmsg.rfidSensors[i].angleSpan =
229 rmsg.rfidSensors[i].angleSpan * 180.0 /
STDR_PI;
230 rmsg.rfidSensors[i].pose.theta =
231 rmsg.rfidSensors[i].pose.theta * 180.0 /
STDR_PI;
233 for(
unsigned int i = 0 ; i < rmsg.co2Sensors.size() ; i++)
237 rmsg.co2Sensors[i].pose.theta =
238 rmsg.co2Sensors[i].pose.theta * 180.0 /
STDR_PI;
240 for(
unsigned int i = 0 ; i < rmsg.thermalSensors.size() ; i++)
242 rmsg.thermalSensors[i].angleSpan =
243 rmsg.thermalSensors[i].angleSpan * 180.0 /
STDR_PI;
244 rmsg.thermalSensors[i].pose.theta =
245 rmsg.thermalSensors[i].pose.theta * 180.0 /
STDR_PI;
247 for(
unsigned int i = 0 ; i < rmsg.soundSensors.size() ; i++)
249 rmsg.soundSensors[i].angleSpan =
250 rmsg.soundSensors[i].angleSpan * 180.0 /
STDR_PI;
251 rmsg.soundSensors[i].pose.theta =
252 rmsg.soundSensors[i].pose.theta * 180.0 /
STDR_PI;
264 rmsg.maxAngle = rmsg.maxAngle / 180.0 *
STDR_PI;
265 rmsg.minAngle = rmsg.minAngle / 180.0 *
STDR_PI;
266 rmsg.pose.theta = rmsg.pose.theta / 180.0 *
STDR_PI;
277 rmsg.maxAngle = rmsg.maxAngle * 180.0 /
STDR_PI;
278 rmsg.minAngle = rmsg.minAngle * 180.0 /
STDR_PI;
279 rmsg.pose.theta = rmsg.pose.theta * 180.0 /
STDR_PI;
290 rmsg.coneAngle = rmsg.coneAngle / 180.0 *
STDR_PI;
291 rmsg.pose.theta = rmsg.pose.theta / 180.0 *
STDR_PI;
301 stdr_msgs::SonarSensorMsg rmsg)
303 rmsg.coneAngle = rmsg.coneAngle * 180.0 /
STDR_PI;
304 rmsg.pose.theta = rmsg.pose.theta * 180.0 /
STDR_PI;
315 rmsg.angleSpan = rmsg.angleSpan / 180.0 *
STDR_PI;
316 rmsg.pose.theta = rmsg.pose.theta / 180.0 *
STDR_PI;
326 stdr_msgs::RfidSensorMsg rmsg)
328 rmsg.angleSpan = rmsg.angleSpan * 180.0 /
STDR_PI;
329 rmsg.pose.theta = rmsg.pose.theta * 180.0 /
STDR_PI;
339 rmsg.pose.theta = rmsg.pose.theta / 180.0 *
STDR_PI;
347 stdr_msgs::CO2SensorMsg rmsg)
350 rmsg.pose.theta = rmsg.pose.theta * 180.0 /
STDR_PI;
359 rmsg.angleSpan = rmsg.angleSpan / 180.0 *
STDR_PI;
360 rmsg.pose.theta = rmsg.pose.theta / 180.0 *
STDR_PI;
368 stdr_msgs::ThermalSensorMsg rmsg)
370 rmsg.angleSpan = rmsg.angleSpan * 180.0 /
STDR_PI;
371 rmsg.pose.theta = rmsg.pose.theta * 180.0 /
STDR_PI;
380 rmsg.angleSpan = rmsg.angleSpan / 180.0 *
STDR_PI;
381 rmsg.pose.theta = rmsg.pose.theta / 180.0 *
STDR_PI;
389 stdr_msgs::SoundSensorMsg rmsg)
391 rmsg.angleSpan = rmsg.angleSpan * 180.0 /
STDR_PI;
392 rmsg.pose.theta = rmsg.pose.theta * 180.0 /
STDR_PI;
ROSLIB_DECL std::string getPath(const std::string &package_name)