Not able to publish on socketcan bridge

asked 2019-12-17 16:25:28 -0500

prj1508 gravatar image

updated 2019-12-17 18:02:21 -0500

jayess gravatar image

Hi

I am trying to publish a CAN message at 100ms rate on to a topic using a timercallback function. I am running the code onboard a vehicle and I have a Ubuntu 16.04 machine with ROS Kinetic and has ros-canopen/socketcan_bridge package. I am using PEAK USB-CAN Interface. When I publish the message on sent_message topic, it is not being sent to CAN bus and ROS gives out an error message "Failed to send message.....". I suspected this could be due to CAN driver not being ready and I also see that the CPU/processor usage spikes when I run the node that does this publishing. My code is straightforward in the callback and should not typically consume lot of resources ( I have i9-6700HQ processor, 16GB RAM with GTX1070). Here is the error message. Can you please help?

[ERROR] [1576620411.175653475]: Failed to send message: 292#57ff000090270000.
[ERROR] [1576620411.175660496]: Failed to send message: 292#57ff0000a06d0000.
[ERROR] [1576620411.175687286]: Failed to send message: 292#57ff0000a06d0000.
[ERROR] [1576620411.175705843]: Failed to send message: 292#57ff0000b0a00000.
[ERROR] [1576620411.175737822]: Failed to send message: 292#57ff0000b0a00000.
[ERROR] [1576620411.175739636]: Failed to send message: 292#57ff0000c0f90000.
[ERROR] [1576620411.175770486]: Failed to send message: 292#57ff0000c0f90000.
[ERROR] [1576620411.175776441]: Failed to send message: 292#57ff0000d0340000.
[ERROR] [1576620411.175803531]: Failed to send message: 292#57ff0000d0340000.
[ERROR] [1576620411.175809256]: Failed to send message: 292#57ff0000e07e0000.
[ERROR] [1576620411.175836518]: Failed to send message: 292#57ff0000e07e0000.
[ERROR] [1576620411.175843258]: Failed to send message: 292#57ff0000f0b30000.
[ERROR] [1576620411.175870902]: Failed to send message: 292#57ff0000f0b30000.
[ERROR] [1576620411.175875283]: Failed to send message: 292#57ff000000cc0000.
[ERROR] [1576620411.175903887]: Failed to send message: 292#57ff000000cc0000.
[ERROR] [1576620411.175908951]: Failed to send message: 292#57ff000010010000.
[ERROR] [1576620411.175937795]: Failed to send message: 292#57ff000010010000.
[ERROR] [1576620411.175941171]: Failed to send message: 292#57ff0000204b0000.

Thank you

edit retag flag offensive close merge delete