Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to melodic-sync 2, adapt to ROS2 style #53

Merged
merged 2 commits into from
Apr 11, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions moveit_core/robot_model/src/joint_model_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ bool jointPrecedes(const JointModel* a, const JointModel* b)
}
} // namespace

const std::string LOGNAME = "robot_model.jmg";

JointModelGroup::JointModelGroup(const std::string& group_name, const srdf::Model::Group& config,
const std::vector<const JointModel*>& unsorted_group_joints,
const RobotModel* parent_model)
Expand Down Expand Up @@ -724,7 +722,7 @@ bool JointModelGroup::isValidVelocityMove(const std::vector<double>& from_joint_
// Check for equal sized arrays
if (from_joint_pose.size() != to_joint_pose.size())
{
ROS_ERROR_NAMED(LOGNAME, "To and from joint poses are of different sizes.");
RCLCPP_ERROR(LOGGER, "To and from joint poses are of different sizes.");
return false;
}

Expand All @@ -745,7 +743,7 @@ bool JointModelGroup::isValidVelocityMove(const double* from_joint_pose, const d
if (var_bounds->size() != 1)
{
// TODO(davetcoleman) Support multiple variables
ROS_ERROR_NAMED(LOGNAME, "Attempting to check velocity bounds for waypoint move with joints that have multiple "
RCLCPP_ERROR(LOGGER, "Attempting to check velocity bounds for waypoint move with joints that have multiple "
"variables");
return false;
}
Expand All @@ -754,7 +752,7 @@ bool JointModelGroup::isValidVelocityMove(const double* from_joint_pose, const d
double max_dtheta = dt * max_velocity;
if (dtheta > max_dtheta)
{
ROS_DEBUG_STREAM_NAMED(LOGNAME, "Not valid velocity move because of joint " << i);
RCLCPP_DEBUG(LOGGER, "Not valid velocity move because of joint %lu", i);
return false;
}
}
Expand Down