Skip to content

Commit

Permalink
Updated function name
Browse files Browse the repository at this point in the history
  • Loading branch information
marip8 committed Sep 29, 2023
1 parent ad31474 commit ff80b84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/reach/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ void reachNeighborsRecursive(const ReachResult& db, const ReachRecord& msg, IKSo
SearchTreePtr search_tree = nullptr);

/**
* @brief Extracts the vector of values from the input map that correspond to the ordered input keys
* @brief Extracts the subset vector of values from the input map that correspond to the ordered input keys
*/
std::vector<double> transcribeInputMap(const std::map<std::string, double>& input,
std::vector<double> extractSubset(const std::map<std::string, double>& input,
const std::vector<std::string>& keys);

} // namespace reach
Expand Down
2 changes: 1 addition & 1 deletion src/reach_study.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void ReachStudy::checkSeedState()
else
{
// Attempt to extract a subset of the seed state for the provided joint names. This function throws an exception if this is not possible
transcribeInputMap(params_.seed_state, joint_names);
extractSubset(params_.seed_state, joint_names);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void reachNeighborsRecursive(const ReachResult& db, const ReachRecord& rec, IKSo
}
}

std::vector<double> transcribeInputMap(const std::map<std::string, double>& input,
std::vector<double> extractSubset(const std::map<std::string, double>& input,
const std::vector<std::string>& keys)
{
if (keys.size() > input.size())
Expand Down

0 comments on commit ff80b84

Please sign in to comment.