rosserial nh.spinOnce() always returning either -1 or -2
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