Skip to content

Commit

Permalink
Merge pull request #129 from robotology/fix/unicycle_input
Browse files Browse the repository at this point in the history
Fix WalkingModule::setPlannerInput() when a new input is set from the joypad
  • Loading branch information
GiulioRomualdi authored Sep 28, 2022
2 parents d3b810d + 4a30f15 commit 1713405
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/WalkingModule/src/Module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ bool WalkingModule::configure(yarp::os::ResourceFinder& rf)
m_qDesired.resize(m_robotControlHelper->getActuatedDoFs());
m_dqDesired.resize(m_robotControlHelper->getActuatedDoFs());

yInfo() << "[WalkingModule::configure] Ready to play!";
yInfo() << "[WalkingModule::configure] Ready to play! Please prepare the robot.";

return true;
}
Expand Down Expand Up @@ -1633,6 +1633,8 @@ bool WalkingModule::startWalking()

bool WalkingModule::setPlannerInput(const yarp::sig::Vector &plannerInput)
{
m_plannerInput = plannerInput;

// in the approaching phase the robot should not move
// as soon as the approaching phase is finished the user
// can move the robot
Expand Down Expand Up @@ -1677,8 +1679,6 @@ bool WalkingModule::setPlannerInput(const yarp::sig::Vector &plannerInput)
}
}

m_plannerInput = plannerInput;

m_newTrajectoryRequired = true;

return true;
Expand Down

0 comments on commit 1713405

Please sign in to comment.