+
+#define _XOPEN_SOURCE 500
#include <map.h>
#include <movehelper.h>
#include <pthread.h>
void Robot::set_state_name(const char* name)
{
- sched.getActualHandle()->state_name = name;
+ sched.get_actual_handle()->state_name = name;
trans_callback();
}
void Robot::trans_callback()
{
- if (MAIN == sched.getActualHandle()) {
+ if (MAIN == sched.get_actual_handle()) {
strncpy(robot.orte.fsm_main.state_name, MAIN->state_name, sizeof(robot.orte.fsm_main.state_name));
ORTEPublicationSend(robot.orte.publication_fsm_main);
- } else if (MOTION == sched.getActualHandle()) {
+ } else if (MOTION == sched.get_actual_handle()) {
strncpy(robot.orte.fsm_motion.state_name, MOTION->state_name, sizeof(robot.orte.fsm_motion.state_name));
ORTEPublicationSend(robot.orte.publication_fsm_motion);
}