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

Process blocking when using rosbags and rate sleep

$
0
0
Hi ! I'm launching a rosbag file from a launch. At the start of the launch I have: then I call the rosbag as: ` Finnally I call the node that I'm debugging: ` In my node localization3d_node, the mainThread() is just as follows: { this->myStuff(); this->loop_rate_.sleep(); } where `loop_rate_` is a `ros::Rate` type variable. And at the localization3d_node constructor I set: this->loop_rate_ = 5;//in [Hz] So, the issue appears at execution: my node gets blocked since it executes the myStuff() function only once and then it stops sleeping for ever. Observation: I recorded the rosbag also with the clock topic, so I don't see any difference in terms of published topics when I call rosbag play with/without the --clock option. The question is: what I'm doing wrong to block my process ? Thanks for your answers !! Andreu

Viewing all articles
Browse latest Browse all 55

Trending Articles



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