Skip to content

Commit

Permalink
[Ninja][WIP] workaround to solve bug dering switching
Browse files Browse the repository at this point in the history
  • Loading branch information
sugihara-16 committed Sep 24, 2024
1 parent 6307b4f commit e622f0e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions robots/ninja/src/ninja_navigation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void NinjaNavigator::update()

BeetleNavigator::update();
bool current_assembled = getCurrentAssembled();
if(current_assembled){
if(current_assembled && !getReconfigFlag()){
try
{
KDL::Frame current_com;
Expand Down Expand Up @@ -379,7 +379,7 @@ void NinjaNavigator::calcCenterOfMoving()

void NinjaNavigator::convertTargetPosFromCoG2CoM()
{
if(!control_flag_ || !morphing_flag_) return;
if(!control_flag_) return;

bool current_assembled = getCurrentAssembled();
bool reconfig_flag = getReconfigFlag();
Expand Down Expand Up @@ -423,7 +423,6 @@ void NinjaNavigator::convertTargetPosFromCoG2CoM()
target_rot.setX(target_roll);
target_rot.setY(target_pitch);
target_rot.setZ(target_yaw);
ROS_ERROR_STREAM("id : " << my_id_ <<" yaw: "<< target_yaw << " pitch: "<<target_pitch<< " roll: "<<target_roll);

/*Set new target pose*/
if( getNaviState() == HOVER_STATE ||
Expand Down

0 comments on commit e622f0e

Please sign in to comment.