11
11
#ifndef __sot_torque_control_common_H__
12
12
#define __sot_torque_control_common_H__
13
13
14
- /* --------------------------------------------------------------------- */
15
- /* --- API ------------------------------------------------------------- */
16
- /* --------------------------------------------------------------------- */
17
-
18
- #if defined (WIN32)
19
- # if defined (hrp2_common_EXPORTS)
20
- # define ROBOT_UTILS_COMMON_EXPORT __declspec (dllexport)
21
- # else
22
- # define ROBOT_UTILS_COMMON_EXPORT __declspec (dllimport)
23
- # endif
24
- #else
25
- # define ROBOT_UTILS_COMMON_EXPORT
26
- #endif
27
-
28
14
29
15
/* --------------------------------------------------------------------- */
30
16
/* --- INCLUDE --------------------------------------------------------- */
31
17
/* --------------------------------------------------------------------- */
32
- #include < iostream>
33
18
#include < dynamic-graph/linear-algebra.h>
34
19
#include < dynamic-graph/signal-helper.h>
35
20
#include < sot/core/matrix-geometry.hh>
@@ -44,7 +29,7 @@ using namespace dg;
44
29
namespace dynamicgraph {
45
30
namespace sot {
46
31
47
- struct JointLimits
32
+ struct SOT_CORE_EXPORT JointLimits
48
33
{
49
34
double upper;
50
35
double lower;
@@ -62,7 +47,7 @@ namespace dynamicgraph {
62
47
63
48
typedef Eigen::VectorXd::Index Index;
64
49
65
- struct ForceLimits
50
+ struct SOT_CORE_EXPORT ForceLimits
66
51
{
67
52
Eigen::VectorXd upper;
68
53
Eigen::VectorXd lower;
@@ -81,7 +66,7 @@ namespace dynamicgraph {
81
66
};
82
67
83
68
84
- struct ForceUtil
69
+ struct SOT_CORE_EXPORT ForceUtil
85
70
{
86
71
std::map<Index,ForceLimits> m_force_id_to_limits;
87
72
std::map<std::string,Index> m_name_to_force_id;
@@ -151,9 +136,9 @@ namespace dynamicgraph {
151
136
152
137
void display (std::ostream & out) const ;
153
138
154
- }; // struct ForceUtil
139
+ }; // struct ForceUtil
155
140
156
- struct FootUtil
141
+ struct SOT_CORE_EXPORT FootUtil
157
142
{
158
143
// / Position of the foot soles w.r.t. the frame of the foot
159
144
dynamicgraph::Vector m_Right_Foot_Sole_XYZ;
@@ -164,7 +149,7 @@ namespace dynamicgraph {
164
149
void display (std::ostream & os) const ;
165
150
};
166
151
167
- struct RobotUtil
152
+ struct SOT_CORE_EXPORT RobotUtil
168
153
{
169
154
public:
170
155
0 commit comments