Main Page · Modules · All Classes · Class Hierarchy
MAGoals.hpp
1 /*
2  * This file is part of the AiBO+ project
3  *
4  * Copyright (C) 2005-2016 Csaba Kertész (csaba.kertesz@gmail.com)
5  *
6  * AiBO+ is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * AiBO+ is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
19  *
20  */
21 
22 #pragma once
23 
24 #include "core/MANum.hpp"
25 #include "MARobotStateUpdater.hpp"
26 
36 {
38  MAGoals();
39 
47  bool IsLocomotionDesired() const;
48 
54  void ResetLocomotionGoals();
55 
56 private:
57  virtual void UpdateRobotState(MARobotState& state) override;
58 
59  void GenerateHeadTurnDesires(MARobotState& state);
60  void GenerateDiscoverSoundSource(MARobotState& state);
61 
62 public:
95 };
96 
MANum< int > HappyOnCarpetFeedback
Give happy feedback about the soft carpet under the robot.
Definition: MAGoals.hpp:88
MANum< int > TurnHeadToLeft
Turn the head to left (goal)
Definition: MAGoals.hpp:90
MANum< int > DiscoverSoundSource
Desire to discover a sound source.
Definition: MAGoals.hpp:84
Goals.
Definition: MAGoals.hpp:35
MANum< int > DesiredRightTurnDuration
The desired duration to turn right (in msec)
Definition: MAGoals.hpp:76
MANum< int > LiePostureDesire
Desire to go into lie posture.
Definition: MAGoals.hpp:68
MANum< int > DesiredForwardWalkDuration
The desired forward walk duration (in msec)
Definition: MAGoals.hpp:70
virtual void UpdateRobotState(MARobotState &state) override
Update the robot state.
Definition: MAGoals.cpp:58
MANum< int > MotionControl
Control the robot locomotion (goal)
Definition: MAGoals.hpp:94
MANum< int > DesiredBackwardWalkDuration
The desired backward walk duration (in msec)
Definition: MAGoals.hpp:72
MANum< int > ArousalFeedbackNeeded
Arousal feedback needed in the near time (in msec)
Definition: MAGoals.hpp:80
MAGoals()
Struct constructor.
Definition: MAGoals.cpp:30
MANum< int > TurnHeadToRight
Turn the head to right (goal)
Definition: MAGoals.hpp:92
MANum< int > SitPostureDesire
Desire to go into sit posture.
Definition: MAGoals.hpp:64
MANum< int > DesiredAudioCaptureDuration
Desired audio capture duration (in msec)
Definition: MAGoals.hpp:86
Robot state updater base class.
MANum< int > StandPostureDesire
Desire to go into stand posture.
Definition: MAGoals.hpp:66
void ResetLocomotionGoals()
Reset the locomotion goals.
Definition: MAGoals.cpp:46
MANum< int > DesireLyingOnTheFloor
A desire to be in lying position.
Definition: MAGoals.hpp:78
MANum< int > DesiredLeftTurnDuration
The desired duration to turn left (in msec)
Definition: MAGoals.hpp:74
MANum< int > ListenToAudioDesire
Desire for listening audio.
Definition: MAGoals.hpp:82
Robot state.
bool IsLocomotionDesired() const
Check if the locomotion is desired now.
Definition: MAGoals.cpp:39