joints使用角度值
This commit is contained in:
@@ -267,10 +267,10 @@ bool DualArmActionServer::validate_goal(const DualArm::Goal & goal, std::string
|
||||
error_msg = "unsupported motion_type";
|
||||
return false;
|
||||
}
|
||||
if (params.blend_radius < 0.0 || params.blend_radius > 0.5) {
|
||||
error_msg = "blend_radius out of range [0.0, 0.5]";
|
||||
return false;
|
||||
}
|
||||
// if (params.blend_radius < 0.0 || params.blend_radius > 0.5) {
|
||||
// error_msg = "blend_radius out of range [0.0, 0.5]";
|
||||
// return false;
|
||||
// }
|
||||
if (params.motion_type == interfaces::msg::ArmMotionParams::MOVEJ &&
|
||||
params.target_joints.size() != USED_ARM_DOF)
|
||||
{
|
||||
|
||||
@@ -117,7 +117,7 @@ bool RealRobotDriver::execute_motion(
|
||||
|
||||
float joints[ARM_DOF] = {0.0f};
|
||||
for (size_t i = 0; i < USED_ARM_DOF; ++i) {
|
||||
joints[i] = static_cast<float>(params.target_joints[i] * 180.0 / M_PI);
|
||||
joints[i] = static_cast<float>(params.target_joints[i]);
|
||||
}
|
||||
|
||||
const int result = rm_service_->rm_movej(
|
||||
|
||||
Reference in New Issue
Block a user