45 std::vector<std::string> active_joints;
48 const moveit::core::RobotModelConstPtr& model =
srdf_config_->getRobotModel();
51 for (
const std::string& joint : model->getJointModelNames())
53 if (model->getJointModel(joint)->getVariableCount() > 0)
55 active_joints.push_back(joint);
63 std::vector<std::string> passive_joints;
64 for (
const srdf::Model::PassiveJoint& passive_joint :
srdf_config_->getPassiveJoints())
66 passive_joints.push_back(passive_joint.name_);
68 return passive_joints;
73 std::vector<srdf::Model::PassiveJoint>& passive_joints =
srdf_config_->getPassiveJoints();
74 passive_joints.clear();
75 for (
const std::string& passive_joint : passive_joint_names)
77 srdf::Model::PassiveJoint pj;
78 pj.name_ = passive_joint;
79 passive_joints.push_back(pj);
std::vector< std::string > getPassiveJoints() const
Return all passive joint names (according to srdf)
std::vector< std::string > getActiveJoints() const
Return all active (non-fixed) joint names.
void setPassiveJoints(const std::vector< std::string > &passive_joints)
std::shared_ptr< SRDFConfig > srdf_config_