Fawkes API
Fawkes Development Version
|
24 #ifndef _INTERFACES_JACOINTERFACE_H_
25 #define _INTERFACES_JACOINTERFACE_H_
27 #include <interface/interface.h>
28 #include <interface/message.h>
29 #include <interface/field_iterator.h>
48 int64_t timestamp_sec;
49 int64_t timestamp_usec;
69 } JacoInterface_data_t;
71 JacoInterface_data_t *data;
80 int64_t timestamp_sec;
81 int64_t timestamp_usec;
82 } CalibrateMessage_data_t;
84 CalibrateMessage_data_t *data;
100 int64_t timestamp_sec;
101 int64_t timestamp_usec;
102 } RetractMessage_data_t;
104 RetractMessage_data_t *data;
120 int64_t timestamp_sec;
121 int64_t timestamp_usec;
122 } StopMessage_data_t;
124 StopMessage_data_t *data;
140 int64_t timestamp_sec;
141 int64_t timestamp_usec;
148 } CartesianGotoMessage_data_t;
150 CartesianGotoMessage_data_t *data;
153 CartesianGotoMessage(
const float ini_x,
const float ini_y,
const float ini_z,
const float ini_e1,
const float ini_e2,
const float ini_e3);
160 void set_x(
const float new_x);
163 void set_y(
const float new_y);
166 void set_z(
const float new_z);
169 void set_e1(
const float new_e1);
172 void set_e2(
const float new_e2);
175 void set_e3(
const float new_e3);
185 int64_t timestamp_sec;
186 int64_t timestamp_usec;
193 } AngularGotoMessage_data_t;
195 AngularGotoMessage_data_t *data;
198 AngularGotoMessage(
const float ini_j1,
const float ini_j2,
const float ini_j3,
const float ini_j4,
const float ini_j5,
const float ini_j6);
205 void set_j1(
const float new_j1);
208 void set_j2(
const float new_j2);
211 void set_j3(
const float new_j3);
214 void set_j4(
const float new_j4);
217 void set_j5(
const float new_j5);
220 void set_j6(
const float new_j6);
230 int64_t timestamp_sec;
231 int64_t timestamp_usec;
235 } MoveGripperMessage_data_t;
237 MoveGripperMessage_data_t *data;
240 MoveGripperMessage(
const float ini_finger1,
const float ini_finger2,
const float ini_finger3);
263 int64_t timestamp_sec;
264 int64_t timestamp_usec;
266 } SetPlannerParamsMessage_data_t;
268 SetPlannerParamsMessage_data_t *data;
288 int64_t timestamp_sec;
289 int64_t timestamp_usec;
291 } JoystickPushMessage_data_t;
293 JoystickPushMessage_data_t *data;
313 int64_t timestamp_sec;
314 int64_t timestamp_usec;
315 } JoystickReleaseMessage_data_t;
317 JoystickReleaseMessage_data_t *data;
342 void set_x(
const float new_x);
345 void set_y(
const float new_y);
348 void set_z(
const float new_z);
360 float joints(
unsigned int index)
const;
361 void set_joints(
unsigned int index,
const float new_joints);
373 uint32_t
msgid()
const;
374 void set_msgid(
const uint32_t new_msgid);
385 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
size_t maxlenof_euler3() const
Get maximum length of euler3 value.
JoystickPushMessage Fawkes BlackBoard Interface Message.
AngularGotoMessage Fawkes BlackBoard Interface Message.
void set_y(const float new_y)
Set y value.
bool is_connected() const
Get connected value.
void set_finger1(const float new_finger1)
Set finger1 value.
float finger3() const
Get finger3 value.
bool is_final() const
Get final value.
~CartesianGotoMessage()
Destructor.
SetPlannerParamsMessage()
Constructor.
~MoveGripperMessage()
Destructor.
size_t maxlenof_j6() const
Get maximum length of j6 value.
virtual Message * clone() const
Clone this message.
float y() const
Get y value.
StopMessage Fawkes BlackBoard Interface Message.
virtual Message * create_message(const char *type) const
Create message based on type name.
void set_x(const float new_x)
Set x value.
size_t maxlenof_finger2() const
Get maximum length of finger2 value.
~AngularGotoMessage()
Destructor.
size_t maxlenof_j3() const
Get maximum length of j3 value.
void set_connected(const bool new_connected)
Set connected value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
float z() const
Get z value.
uint32_t error_code() const
Get error_code value.
void set_finger1(const float new_finger1)
Set finger1 value.
void set_j2(const float new_j2)
Set j2 value.
size_t maxlenof_e3() const
Get maximum length of e3 value.
void set_y(const float new_y)
Set y value.
float e1() const
Get e1 value.
size_t maxlenof_euler2() const
Get maximum length of euler2 value.
CartesianGotoMessage()
Constructor.
size_t maxlenof_e1() const
Get maximum length of e1 value.
MoveGripperMessage()
Constructor.
float j4() const
Get j4 value.
~SetPlannerParamsMessage()
Destructor.
uint32_t msgid() const
Get msgid value.
float euler3() const
Get euler3 value.
void set_x(const float new_x)
Set x value.
static const uint32_t ERROR_NONE
ERROR_NONE constant.
~StopMessage()
Destructor.
size_t maxlenof_initialized() const
Get maximum length of initialized value.
size_t maxlenof_z() const
Get maximum length of z value.
size_t maxlenof_finger3() const
Get maximum length of finger3 value.
RetractMessage Fawkes BlackBoard Interface Message.
const char * type() const
Get type of interface.
void set_j5(const float new_j5)
Set j5 value.
float z() const
Get z value.
JoystickReleaseMessage()
Constructor.
void set_e2(const float new_e2)
Set e2 value.
float finger1() const
Get finger1 value.
float j1() const
Get j1 value.
size_t maxlenof_y() const
Get maximum length of y value.
float x() const
Get x value.
float * joints() const
Get joints value.
float j5() const
Get j5 value.
size_t maxlenof_z() const
Get maximum length of z value.
void set_z(const float new_z)
Set z value.
size_t maxlenof_j4() const
Get maximum length of j4 value.
RetractMessage()
Constructor.
float j3() const
Get j3 value.
size_t maxlenof_e2() const
Get maximum length of e2 value.
size_t maxlenof_finger3() const
Get maximum length of finger3 value.
void set_e1(const float new_e1)
Set e1 value.
bool is_initialized() const
Get initialized value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
void set_finger3(const float new_finger3)
Set finger3 value.
virtual Message * clone() const
Clone this message.
float finger1() const
Get finger1 value.
virtual Message * clone() const
Clone this message.
void set_j1(const float new_j1)
Set j1 value.
size_t maxlenof_j5() const
Get maximum length of j5 value.
MoveGripperMessage Fawkes BlackBoard Interface Message.
void set_euler3(const float new_euler3)
Set euler3 value.
static const uint32_t ERROR_NO_IK
ERROR_NO_IK constant.
~JoystickPushMessage()
Destructor.
float e2() const
Get e2 value.
Fawkes library namespace.
void set_joints(unsigned int index, const float new_joints)
Set joints value at given index.
CartesianGotoMessage Fawkes BlackBoard Interface Message.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
size_t maxlenof_error_code() const
Get maximum length of error_code value.
StopMessage()
Constructor.
float y() const
Get y value.
size_t maxlenof_finger2() const
Get maximum length of finger2 value.
virtual Message * clone() const
Clone this message.
uint32_t button() const
Get button value.
size_t maxlenof_finger1() const
Get maximum length of finger1 value.
float euler2() const
Get euler2 value.
Base class for all Fawkes BlackBoard interfaces.
virtual Message * clone() const
Clone this message.
void set_z(const float new_z)
Set z value.
virtual Message * clone() const
Clone this message.
void set_euler1(const float new_euler1)
Set euler1 value.
float finger3() const
Get finger3 value.
size_t maxlenof_j2() const
Get maximum length of j2 value.
float j6() const
Get j6 value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
~CalibrateMessage()
Destructor.
void set_finger2(const float new_finger2)
Set finger2 value.
JoystickPushMessage()
Constructor.
size_t maxlenof_x() const
Get maximum length of x value.
size_t maxlenof_y() const
Get maximum length of y value.
size_t maxlenof_final() const
Get maximum length of final value.
size_t maxlenof_euler1() const
Get maximum length of euler1 value.
size_t maxlenof_j1() const
Get maximum length of j1 value.
static const uint32_t ERROR_UNSPECIFIC
ERROR_UNSPECIFIC constant.
virtual Message * clone() const
Clone this message.
void set_error_code(const uint32_t new_error_code)
Set error_code value.
size_t maxlenof_params() const
Get maximum length of params value.
static const uint32_t ERROR_PLANNING
ERROR_PLANNING constant.
size_t maxlenof_finger1() const
Get maximum length of finger1 value.
size_t maxlenof_joints() const
Get maximum length of joints value.
size_t maxlenof_x() const
Get maximum length of x value.
char * params() const
Get params value.
float finger2() const
Get finger2 value.
size_t maxlenof_button() const
Get maximum length of button value.
void set_euler2(const float new_euler2)
Set euler2 value.
~RetractMessage()
Destructor.
float j2() const
Get j2 value.
void set_params(const char *new_params)
Set params value.
void set_finger2(const float new_finger2)
Set finger2 value.
virtual Message * clone() const
Clone this message.
float e3() const
Get e3 value.
size_t maxlenof_connected() const
Get maximum length of connected value.
CalibrateMessage Fawkes BlackBoard Interface Message.
void set_button(const uint32_t new_button)
Set button value.
void set_j4(const float new_j4)
Set j4 value.
void set_initialized(const bool new_initialized)
Set initialized value.
JacoInterface Fawkes BlackBoard Interface.
void set_final(const bool new_final)
Set final value.
SetPlannerParamsMessage Fawkes BlackBoard Interface Message.
void set_msgid(const uint32_t new_msgid)
Set msgid value.
float euler1() const
Get euler1 value.
void set_j3(const float new_j3)
Set j3 value.
float finger2() const
Get finger2 value.
size_t maxlenof_msgid() const
Get maximum length of msgid value.
void set_finger3(const float new_finger3)
Set finger3 value.
void set_j6(const float new_j6)
Set j6 value.
void set_e3(const float new_e3)
Set e3 value.
CalibrateMessage()
Constructor.
JoystickReleaseMessage Fawkes BlackBoard Interface Message.
float x() const
Get x value.
AngularGotoMessage()
Constructor.
virtual Message * clone() const
Clone this message.
~JoystickReleaseMessage()
Destructor.