SCL  1.0
Standard Control Library : Control, dynamics, physics, and simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
CTaskNULL.hpp
1 /* This file is part of scl, a control and simulation library
2 for robots and biomechanical models.
3 
4 scl is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 3 of the License, or (at your option) any later version.
8 
9 Alternatively, you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of
12 the License, or (at your option) any later version.
13 
14 scl is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU Lesser General Public
20 License and a copy of the GNU General Public License along with
21 scl. If not, see <http://www.gnu.org/licenses/>.
22 */
23 /* \file CTaskNULL.hpp
24  *
25  * Created on: Aug 19, 2010
26  *
27  * Copyright (C) 2010
28  *
29  * Author: Samir Menon <smenon@stanford.edu>
30  */
31 
32 #ifndef CTASKNULL_HPP_
33 #define CTASKNULL_HPP_
34 
35 #include <scl/DataTypes.hpp>
36 
37 #include <scl/control/task/CTaskBase.hpp>
38 
39 #include <scl/dynamics/CDynamicsBase.hpp>
40 
41 namespace scl
42 {
43 
51 {
52 public:
54  CTaskNULL() : data_(S_NULL) {}
55 
57  virtual ~CTaskNULL(){}
58 
59  /********************************
60  * CTaskBase API
61  *********************************/
62 
65  virtual bool init(STaskBase* arg_task_data,
66  CDynamicsBase* arg_dynamics);
67 
69  virtual STaskBase* getTaskData();
70 
73  virtual void reset();
74 
76  virtual bool computeServo(const SRobotSensors* arg_sensors);
77 
79  virtual bool computeModel(const SRobotSensors* arg_sensors);
80 
81 private:
84 };
85 
86 }
87 
88 #endif /* CTASKNULL_HPP_ */
Definition: STaskBase.hpp:69
virtual bool computeModel(const SRobotSensors *arg_sensors)
Definition: CTaskNULL.cpp:84
virtual bool init(STaskBase *arg_task_data, CDynamicsBase *arg_dynamics)
Definition: CTaskNULL.cpp:40
virtual bool computeServo(const SRobotSensors *arg_sensors)
Definition: CTaskNULL.cpp:73
virtual STaskBase * getTaskData()
Definition: CTaskNULL.cpp:63
CTaskNULL()
Definition: CTaskNULL.hpp:54
Definition: CDynamicsBase.hpp:55
virtual ~CTaskNULL()
Definition: CTaskNULL.hpp:57
virtual void reset()
Definition: CTaskNULL.cpp:66
Definition: CTaskNULL.hpp:50
STaskBase * data_
Definition: CTaskNULL.hpp:83
Definition: SRobotIO.hpp:49
Definition: CTaskBase.hpp:54