Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 314

nh.spinOnce() always returning either -1 or -2

$
0
0
Hi, i am using rosserial on a ESP32 with rosserial_python via tcp on the ROS master. I can send data (publish) incredibly fast, but i cannot sync with the rosserial_python server, spinOnce() either blocks my program or returns -1 or -2 everytime (which means SPIN_ERR and SPIN_TIMEOUT) and happens in this part of code from ros_lib: file node_handle.h, in function spinOnce() : if (topic_ == TopicInfo::ID_PUBLISHER) { requestSyncTime(); negotiateTopics(); last_sync_time = c_time; last_sync_receive_time = c_time; return SPIN_ERR; } Do you know why theres an error here ? Or what does the IF do? Regards, ogensyts

Viewing all articles
Browse latest Browse all 314

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>