Skip to content

Commit

Permalink
[aerial_robot_model] add new API to get and set extra module map (#661)
Browse files Browse the repository at this point in the history
* [aerial_robot_model] add new API to get and set extra module map

* [aerial_robot_model] use reference to get extra module map
  • Loading branch information
sugikazu75 authored Jan 17, 2025
1 parent 5a1c14e commit 61c38f2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ namespace aerial_robot_model {

bool addExtraModule(std::string module_name, std::string parent_link_name, KDL::Frame transform, KDL::RigidBodyInertia inertia);
bool removeExtraModule(std::string module_name);
const std::map<std::string, KDL::Segment>& getExtraModuleMap() const {return extra_module_map_;}
void setExtraModuleMap(const std::map<std::string, KDL::Segment>& map) {extra_module_map_ = map;}

// statics (static thrust, joint torque)
Eigen::VectorXd calcGravityWrenchOnRoot();
Expand Down

0 comments on commit 61c38f2

Please sign in to comment.