-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error due to driver_state error can::State #366
Comments
How is this issue different from #365?
Which?
This does not help much. |
Here is the console output process[socketcan_bridge_node-1]: started with pid [780] FAILED system:105 I am not sure why it is trying to send a message with 0# id |
The driver stops working because yor are sending messages (way) faster than the underlying system can process them. The errors occur with a rate of 2 KHz. Anyway, I will close this issue, because it does not seem to be a bug.
I guess something is wrong with your data generation scheme; and it is not thread-safe. |
@ipa-mdl, I did some more analysis. My code is such that I am subscribing to a topic in a callback, then building a message of type can_msgs::Frame in the callback. Now, if I publish from within this callback on sent_messages topic, I see that the message is sent successfully to the bus. However, I have to ensure the message should be sent at 10ms rate and hence I have created a timer in ROS (ros::Timer) and then publishing the message I want (which is a global variable in my class definition) from the timercallback. When I do this, the message is not sent and the console output is as above. Please suggest |
I have a publisher in socketcan_bridge that sends message on sent_messages topic. When this is getting converted to socketcan in topic_to_socketcan node, I am getting an error message that says it failed to send the message on to CAN bus. When I debugged, I noticed that can::State is Open which sets a boolean resulting in failure to send CAN message. Here is the snapshot of the debugged state


To make sure, I sent another message with simpler, but similar data and the message is being transmitted to CAN bus and also can::State is ready. Here is the snapshot
I am nor sure why my message is not being published to CAN In the first case. Appreciate any suggestions on this problem
The text was updated successfully, but these errors were encountered: