1
0
mirror of https://gitlab.com/obbart/universal_robots_ros_driver.git synced 2026-04-10 01:50:46 +02:00

Fixed calls to ROS_ERROR

This commit is contained in:
Thomas Timm Andersen
2015-09-10 14:46:18 +02:00
parent 9d56e027d2
commit 1b4ef808ee

View File

@@ -137,21 +137,21 @@ private:
"Received a goal with incorrect joint names: "
+ outp_joint_names;
as_.setAborted(result_, result_.error_string);
ROS_ERROR(result_.error_string.c_str());
ROS_ERROR("%s",result_.error_string.c_str());
}
if (!has_velocities()) {
result_.error_code = result_.INVALID_GOAL;
result_.error_string = "Received a goal without velocities";
as_.setAborted(result_, result_.error_string);
ROS_ERROR(result_.error_string.c_str());
ROS_ERROR("%s",result_.error_string.c_str());
}
if (!traj_is_finite()) {
result_.error_string = "Received a goal with infinites or NaNs";
result_.error_code = result_.INVALID_GOAL;
as_.setAborted(result_, result_.error_string);
ROS_ERROR(result_.error_string.c_str());
ROS_ERROR("%s",result_.error_string.c_str());
}
if (!has_limited_velocities()) {
@@ -159,7 +159,7 @@ private:
result_.error_string =
"Received a goal with velocities that are higher than %f", max_velocity_;
as_.setAborted(result_, result_.error_string);
ROS_ERROR(result_.error_string.c_str());
ROS_ERROR("%s",result_.error_string.c_str());
}
reorder_traj_joints(goal_.trajectory);