Fawkes API
Fawkes Development Version
|
NaoQi kick task. More...
#include "motion_kick_task.h"
Public Member Functions | |
NaoQiMotionKickTask (AL::ALPtr< AL::ALMotionProxy > almotion, fawkes::HumanoidMotionInterface::LegEnum leg) | |
Constructor. More... | |
virtual | ~NaoQiMotionKickTask () |
Destructor. More... | |
virtual void | exitTask () |
Stop the current kick task. More... | |
virtual void | run () |
Run the kick. More... | |
NaoQi kick task.
This task can be used to make the robot kick in a non-blocking way. It will use (blocking) ALMotion calls to execute the move. Note that ALMotion should not be used otherwise while kicking.
Definition at line 32 of file motion_kick_task.h.
NaoQiMotionKickTask::NaoQiMotionKickTask | ( | AL::ALPtr< AL::ALMotionProxy > | almotion, |
fawkes::HumanoidMotionInterface::LegEnum | leg | ||
) |
Constructor.
almotion | ALMotion proxy |
leg | leg to kick with |
Definition at line 49 of file motion_kick_task.cpp.
|
virtual |
|
virtual |
Stop the current kick task.
Stops the current motion and posts a goto for the start position. This is not stable from all configurations but seems to suffices most of the time.
Definition at line 140 of file motion_kick_task.cpp.
|
virtual |
Run the kick.
Definition at line 150 of file motion_kick_task.cpp.
References fawkes::deg2rad(), fawkes::HumanoidMotionInterface::LEG_LEFT, and fawkes::HumanoidMotionInterface::LEG_RIGHT.