20 #include <yarp/os/Time.h>
21 #include <yarp/os/LogStream.h>
25 #include <ace/config.h>
26 #include <ace/Recursive_Thread_Mutex.h>
27 #include "EOYtheSystem.h"
125 eo_common_ipv4addr_to_string(ipv4, ipinfo,
sizeof(ipinfo));
126 eoprot_ID2information(id32, nvinfo,
sizeof(nvinfo));
127 yDebug(
"feat_manage_motioncontrol_data() fails to get a handle of embObjMotionControl for IP = %s and NV = %s", ipinfo, nvinfo);
137 mc->
update(id32, yarp::os::Time::now(), rxdata);
194 eo_common_ipv4addr_to_string(ipv4, ipinfo,
sizeof(ipinfo));
195 eoprot_ID2information(id32, nvinfo,
sizeof(nvinfo));
196 yDebug(
"feat_manage_skin_data() fails to get a handle of embObjSkin for IP = %s and NV = %s", ipinfo, nvinfo);
206 skin->
update(id32, yarp::os::Time::now(), (
void *)arrayofcandata);
228 eo_common_ipv4addr_to_string(ipv4, ipinfo,
sizeof(ipinfo));
229 eoprot_ID2information(id32, nvinfo,
sizeof(nvinfo));
230 yDebug(
"feat_manage_analogsensors_data() fails to get a handle of embObjAnalogSensor for IP = %s and NV = %s", ipinfo, nvinfo);
240 sensor->
update(id32, yarp::os::Time::now(),
data);
263 return(yarp::os::Time::now());
285 return(eobool_false);
297 static const char * errorstr =
"error";
310 yTrace(
"%s",
string);
316 yDebug(
"%s",
string);
328 yWarning(
"%s",
string);
334 yError(
"%s",
string);
340 yError(
"EMS received the following FATAL error: %s",
string);
348 yError(
"the diagnostic service can not start. The interface to the eth manager is not working.");
362 ACE_Recursive_Thread_Mutex* mtx =
new ACE_Recursive_Thread_Mutex();
370 ACE_Recursive_Thread_Mutex* acemtx =
reinterpret_cast<ACE_Recursive_Thread_Mutex*
>(m);
385 ACE_Recursive_Thread_Mutex* acemtx =
reinterpret_cast<ACE_Recursive_Thread_Mutex*
>(m);
399 ACE_Recursive_Thread_Mutex* acemtx =
reinterpret_cast<ACE_Recursive_Thread_Mutex*
>(m);
virtual bool CANPrintHandler(eOmn_info_basic_t *infobasic)=0
virtual bool update(eOprotID32_t id32, double timestamp, void *rxdata)=0
virtual bool initialised()=0
eth::AbstractEthResource * getEthResource(eOipv4addr_t ipv4)
IethResource * getInterface(eOipv4addr_t ipv4, eOprotID32_t id32)
const string & getName(eOipv4addr_t ipv4)
bool onarrival(const ropCode ropcode, const eOprotIP_t ipv4, const eOprotID32_t id32, const std::uint32_t signature)
static theNVmanager & getInstance()
double feat_yarp_time_now(void)
eObool_t feat_signal_network_onsay(eOipv4addr_t ipv4, eOprotID32_t id32, uint32_t signature)
void feat_PrintFatal(char *string)
eObool_t feat_manage_motioncontrol_addinfo_multienc(eOipv4addr_t ipv4, eOprotID32_t id32, void *rxdata)
const eOysystem_cfg_t * feat_getSYSconfig()
void * ace_mutex_new(void)
int8_t ace_mutex_take(void *m, uint32_t tout_usec)
int8_t ace_mutex_release(void *m)
eObool_t feat_manage_skin_data(eOipv4addr_t ipv4, eOprotID32_t id32, void *arrayofcandata)
void feat_PrintTrace(char *string)
static const eOysystem_cfg_t eosys_config_ace
eObool_t feat_manage_analogsensors_data(eOipv4addr_t ipv4, eOprotID32_t id32, void *data)
eObool_t feat_CANprint(eOipv4addr_t ipv4, eOmn_info_basic_t *infobasic)
eObool_t feat_manage_motioncontrol_data(eOipv4addr_t ipv4, eOprotID32_t id32, void *rxdata)
void feat_manage_diagnostic(eOmn_info_basic_t *infobasic, uint8_t *extra, const EOnv *nv, const eOropdescriptor_t *rd)
void * feat_MC_handler_get(eOipv4addr_t ipv4, eOprotID32_t id32)
void feat_PrintDebug(char *string)
const char * feat_GetBoardName(eOipv4addr_t ipv4)
void feat_PrintInfo(char *string)
static eth::TheEthManager * _interface2ethManager
void feat_PrintError(char *string)
eObool_t feat_signal_network_onsig(eOipv4addr_t ipv4, eOprotID32_t id32, uint32_t signature)
void feat_Initialise(void *handleOfTheEthManager)
void ace_mutex_delete(void *m)
void feat_PrintWarning(char *string)