Skip to content

Commit

Permalink
[Ninja][Model][WIP] create another robot model instance to treat the …
Browse files Browse the repository at this point in the history
…networked structure
  • Loading branch information
sugihara-16 committed Jan 4, 2024
1 parent 8505656 commit e4e682f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions robots/ninja/include/ninja/model/ninja_robot_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,12 @@ class NinjaRobotModel : public BeetleRobotModel{
double epsilon = 10);
virtual ~NinjaRobotModel() = default;

void calcCenterOfMoving() override;

private:
boost::shared_ptr<aerial_robot_model::transformable::RobotModel> networked_robot_model_;

protected:
virtual void updateRobotModelImpl(const KDL::JntArray& joint_positions) override;
};

9 changes: 9 additions & 0 deletions robots/ninja/src/model/ninja_robot_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
NinjaRobotModel::NinjaRobotModel(bool init_with_rosparam, bool verbose, double fc_t_min_thre, double epsilon) :
BeetleRobotModel(init_with_rosparam, verbose, fc_t_min_thre, epsilon)
{
networked_robot_model_ = boost::make_shared<aerial_robot_model::transformable::RobotModel>();
}

void NinjaRobotModel::updateRobotModelImpl(){
BeetleRobotModel::updateRobotModelImpl();
}

void NinjaRobotModel::calcCenterOfMoving(const KDL::JntArray& joint_positions){
BeetleRobotModel::calcCenterOfMoving(joint_positions);
}

/* plugin registration */
Expand Down

0 comments on commit e4e682f

Please sign in to comment.