12 #include <yarp/os/Time.h>
18 printf(
"Image Thread initialising...\n");
22 prop.put(
"CanTxTimeout", 500);
23 prop.put(
"CanRxTimeout", 500);
24 prop.put(
"CanDeviceNum",
netId);
25 prop.put(
"CanMyAddress", 0);
35 fprintf(stderr,
"Error opening PolyDriver check parameters\n");
43 fprintf(stderr,
"Error opening /ecan device not available\n");
50 for (
int id=0;
id<16; ++id)
60 printf(
"... done!\n");
67 std::lock_guard<std::mutex> lck(
mtx);
69 unsigned int canMessages=0;
73 for (
unsigned int i=0; i<canMessages; i++)
77 if ((msg.getId() & 0xFFFFFFF0) ==
cardId)
79 int sensorId=msg.getId() & 0x0F;
83 if (msg.getData()[0] & 0x80)
98 printf(
"Skin Mesh Thread releasing...\n");
104 printf(
"... done.\n");
const int CAN_DRIVER_BUFFER_SIZE
ICanBufferFactory * pCanBufferFactory
virtual void threadRelease()
virtual bool threadInit()
void setActivationFirst7(unsigned char *data)
void setActivationLast5(unsigned char *data)