canopen_chain_node and init device
How to init vcan0?
I need to use can::SocketCANInterface ?
can::Frame msg1;
msg1.id = 1;
msg1.data = {1,2,3,4};
const string driv("vcan0");
can::SocketCANInterface driver;
printf("init = %d\n",driver.init(driv, true));
printf("rec = %d\n",driver.recover());
printf("state = %d\n",(int)driver.getState().isReady());
printf("send = %d\n",driver.send(msg1));
Output:
init = 1
rec = 0
state = 0
send = 0
And how to send messages using a dictionary in canopen_chain_node .
canopen_chain_node configured correctly and launched.
Please, help to understand, I am a beginner to ROS.
Does anyone have an example?