cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsTrajectory.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5  $Id: osaTrajectory.h 4202 2013-05-17 15:39:06Z adeguet1 $
6 
7  Author(s): Simon Leonard
8  Created on: 2012
9 
10  (C) Copyright 2012-2013 Johns Hopkins University (JHU), All Rights
11  Reserved.
12 
13 --- begin cisst license - do not edit ---
14 
15 This software is provided "as is" under an open source license, with
16 no warranty. The complete license can be found in license.txt and
17 http://www.cisst.org/cisst/license.txt.
18 
19 --- end cisst license ---
20 */
21 
22 #ifndef _mtsTrajectory_h
23 #define _mtsTrajectory_h
24 
29 
32 
33 
36 
38 
39 private:
40 
41  osaTrajectory* trajectory;
42 
43 
45  mtsBool mtsEnabled;
46 
47  mtsInterfaceProvided* input;
48 
49  mtsInterfaceProvided* output;
52 
53 
54  double t;
55 
56 protected:
57 
58  bool IsEnabled() const { return mtsEnabled; }
59 
60  void SetPositionCartesian( const mtsFrm4x4& Rt );
61  void SetPositionJoint( const mtsDoubleVec& q );
62 
63 public:
64 
65  mtsTrajectory( const std::string& taskname,
66  double period,
67  const std::string& robfilename,
68  const vctFrame4x4<double>& Rtw0,
69  const vctDynamicVector<double>& qinit );
70 
71  ~mtsTrajectory();
72 
73  void Configure( const std::string& argv="" );
74 
75  void Startup();
76  void Run();
77  void Cleanup();
78 
79 };
80 
81 #endif
Definition: prmPositionJointGet.h:35
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Typedef for different transformations.
mtsDoubleFrm4x4 mtsFrm4x4
Definition: mtsTransformationTypes.h:72
Definition: osaTrajectory.h:34
virtual void Startup(void)
Definition: mtsComponent.h:262
Definition: mtsTrajectory.h:37
virtual void Configure(const std::string &CMN_UNUSED(filename)="")
Definition: mtsTask.h:218
Defines a periodic task.
Definition: mtsInterfaceProvided.h:96
bool IsEnabled() const
Definition: mtsTrajectory.h:58
virtual void Run(void)=0
Declaration of mtsInterfaceProvided.
Definition: mtsTaskPeriodic.h:80
virtual void Cleanup(void)
Definition: mtsComponent.h:267
Definition: prmPositionCartesianGet.h:37