11#ifndef HAL_HeadTarget_DEFINED
12#define HAL_HeadTarget_DEFINED
53 set_head_stopped(
true);
54 set_head_cmd_mask(
true);
65 GoToWithTime_rad(
static_cast<float>(DEG2RAD(yaw)),
static_cast<float>(DEG2RAD(pitch)), time);
86 set_target_pitchAngle(pitch);
87 set_target_yawAngle(yaw);
88 set_target_movement_time(time);
89 set_head_stopped(
false);
90 set_head_cmd_mask(
true);
94#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
107 fprintf(stderr,
"NYI - Have it back: %s\n",
const_cast<char *
>(str.c_str()));
116 std::stringstream ss;
117 ss << target_pitchAngle() <<
" P, " << target_yawAngle() <<
" Y, " << target_movement_time() <<
" T, " << head_stopped() <<
" S, " << head_cmd_mask() <<
" M";
Class for moving a robotic head in abs coords.
HAL_HeadTarget()
Constructor.
std::string description() const
Description method for pretty printing the values in this class.
void GoToWithTime(float yaw, float pitch, int time=1000000)
move to position in degrees over a given time
HAL_HeadTarget(const std::string &str)
String constructor (NYI)
void GoToWithTime_rad(float yaw, float pitch, int time=1000000)
move to position in radians over a given time
void from_string(const std::string &str)
Parser for recreating this class (NYI)
void Stop()
Set stopping vars.