ros-industrial / ros_canopen

CANopen driver framework for ROS (http://wiki.ros.org/ros_canopen)
GNU Lesser General Public License v3.0
336 stars 271 forks source link

ROS Error : Failed to send message #365

Closed Prj1508 closed 4 years ago

Prj1508 commented 4 years ago

I get this message when I publish on sent_messages topic of socketcan_bridge node. I see that this is getting published properly, but is not being sent to the can bus ( topic to socketcan issue). CAN is working properly and I can see traffic thru candump.

In topic to socketcan code, I see that there is a boolean flag which sends this message when fault. Is this to do with overflow of data I am trying to stuff into available data bits of the message

I am using Ubuntu 16.04 and ROS Kinetic

thanks for your help

mathias-luedtke commented 4 years ago

I would suspect that your frame is not valid. How do you publish the data?

Prj1508 commented 4 years ago

i am publishing thru a 10ms timer callback. All CAN data byte stuffing is happening in another subscriber call back which updates a global variable of type can_msgs::Frame. This variable is then published thru a 10ms timer callback.

Prj1508 commented 4 years ago

this issue is same as #366.

Prj1508 commented 4 years ago

I didn’t not capture console output with —screen option. will do so today and revert

mathias-luedtke commented 4 years ago

this issue is same as 306.

306 or 366?

Prj1508 commented 4 years ago

Sorry, 366

mathias-luedtke commented 4 years ago

duplicate of #366