Skip to content

Commit

Permalink
the actions were miss placed
Browse files Browse the repository at this point in the history
  • Loading branch information
NunoDuarte committed May 15, 2018
1 parent 8cad4c2 commit deab259
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/icub_pupil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,17 +482,19 @@ class ControlThread: public RateThread

// call the predictor function
action = predictAL(act_probability, state, action);
yInfo() << act_probability.at<double>(0,0);
yInfo() << act_probability.at<double>(1,0);

// make a decision based on the predictor's response
if (action == 1){
if (action == 0){
// get current location
iarm->getPose(p,o);
// get current velocities
iarm->getTaskVelocities(vcur, wcur);

reachArmGiving(p, o, xf, vcur);

} else if (action == 0) {
} else if (action == 1) {
// just observe the action
yInfo() << "I'm observing";

Expand Down

0 comments on commit deab259

Please sign in to comment.