Is threading necessary in long callback function
Hey,
So I was wondering if within a ROS node, a callback function were to take 3 seconds to execute a task, would the whole node be held up by this? Or is it threaded in some way by default.
For this application I have a bump sensor on the front of my robot, and was hoping to do some obstacle avoidance if something was hit. For example, reverse, turn, try again. And I was going to hard code a sequence like that into my GNC system, but it would be good if the node isn't locked up for that time period. I was also hoping to ramp motor velocity up and down when a change in speed or direction is required, I guess that also ties into this question.
Thanks for any help in advance!
This actually sounds like a good candidate for actions
Yeah wow, that is a great idea. I wish I thought of a fair few hours ago... sometimes I overlook the most obvious solutions, thanks for the input.