Skip to content
New issue

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

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

Already on GitHub? # to your account

Switch from std::set to std::vector to prevent joint name alphabetization #54

Merged
merged 1 commit into from
Jun 26, 2023
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/robot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ auto get_active_variable_indices(std::shared_ptr<moveit::core::RobotModel const>
// For each of the active joints in the joint model group
// If those are in the ones we are using and the joint is not a mimic
// Then get all the variable names from the joint moodel
auto active_variable_names = std::set<std::string>{};
auto active_variable_names = std::vector<std::string>{};
for (auto const* joint_model : jmg->getActiveJointModels()) {
if (joint_usage[joint_model->getJointIndex()] && !joint_model->getMimic()) {
for (auto& name : joint_model->getVariableNames()) {
active_variable_names.insert(name);
active_variable_names.push_back(name);
}
}
}
Expand Down