TVM
0.9.4
PostureFunction.h
Go to the documentation of this file.
1
3
#pragma once
4
5
#include <
tvm/Robot.h
>
6
7
#include <
tvm/function/abstract/Function.h
>
8
9
namespace
tvm
10
{
11
12
namespace
robot
13
{
14
16
class
TVM_DLLAPI
PostureFunction
:
public
function::abstract::Function
17
{
18
public
:
19
SET_UPDATES
(
PostureFunction
, Value,
Velocity
)
20
21
26
PostureFunction
(
RobotPtr
robot);
27
29
void
reset();
30
38
void
posture(const
std
::
string
& j, const
std
::vector<
double
> & q);
39
41
void
posture(const
std
::vector<
std
::vector<
double
>> & p);
42
43
protected:
44
void
updateValue();
45
46
void
updateVelocity();
47
48
RobotPtr
robot_;
49
51
std
::vector<
std
::vector<
double
>> posture_;
52
54
int
j0_;
55
};
56
57
}
// namespace robot
58
59
}
// namespace tvm
SET_UPDATES
#define SET_UPDATES(SelfT,...)
Definition:
AbstractNode.h:138
Function.h
Robot.h
TVM_DLLAPI
#define TVM_DLLAPI
Definition:
api.h:35
tvm::function::abstract::Function
Definition:
Function.h:45
tvm::robot::PostureFunction
Definition:
PostureFunction.h:17
std
Definition:
probe.h:44
tvm::robot::ContactConstraintType::Velocity
@ Velocity
tvm
Definition:
Clock.h:12
tvm::RobotPtr
std::shared_ptr< Robot > RobotPtr
Definition:
defs.h:62
include
tvm
robot
PostureFunction.h
Generated by
1.9.1