Skip to main content

Questions tagged [spinning]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
51 views

Lifecycle node consuming cpu in deactivated state

My node which is a critical component of a larger system contains the following interfaces for communicating with other nodes Two action servers One tf listner One service server Four subscribers Two ...
tomRob's user avatar
  • 88
0 votes
0 answers
16 views

Behavior Tree with moveit on ros1

Right now I am unable to execute the moveit and i am not sure why, I thought it could be due to Async Spinner but when i added a async spinner in the main or in the class itself it always aborts ...
emanuel rodrigues's user avatar
0 votes
0 answers
227 views

rclcpp::spin_until_future_complete(): Timeout for "non-blocking" call

tl;dr Expected behaviour: Having a non-blocking spin. Current behaviour: spin_until_future_complete() always returns timeout without firing any topic callback Hi, I am working on implementing the ...
magladko's user avatar
0 votes
0 answers
93 views

pytest with spin_until_future_complete doesn't work

I've got a short test that works fine with spin_once, but not with spin_until_future_complete, I probably badly use ...
SebL's user avatar
  • 51
0 votes
1 answer
9 views

Turtlebot spinning in place + not going straight when speeding up simulation

Hello, As I show in the videos above, the Turtlebot is spins around itself a bit, which could affect the direction when I try to go straight. When the real time factor (simulation speed) is normal the ...
user avatar
0 votes
1 answer
13 views

Confusion about AsyncSpinner

Hi, I am confused about the behavior of AsyncSpinner. My understanding is that AsyncSpinner would allow a node to process ...
user avatar
0 votes
1 answer
10 views

Thread safe spinning with Mutex and boost::threads

I have several threads accessing the same function. To guarantee safe spinning, which means none of the threads calls ros::spinOnce() at the same time I used ...
user avatar
0 votes
1 answer
17 views

MY RPlidar stopped spinning and sending data

i have an Arduino Leonardo and the RPLidar. I also have a RGB shield attached to it. I got the liar to spin on windows but have recently just changed to macintosh and it isn't spinning anymore. The ...
user avatar
0 votes
1 answer
3 views

How to invoke callback functions sequentially

This is how my main looks like: ...
user avatar
0 votes
1 answer
1 view

SingleThreadedSpinner error: json_prolog launch knowrob

Hello. I am starting two threads using a predicate as query in json_prolog: one for subscribing to topics and other pops the callback to make assertions. There are separate spin() for both of them. It ...
user avatar
0 votes
1 answer
2 views

why to define ros::spin() in another thread?

Hey all, There is an example in actionlib tutorial: wiki.ros.org/actionlib_tutorials/Tutorials/SimpleActionClient(Threaded). In this example the ros::spin() command is used in another thread. Why ...
user avatar
0 votes
1 answer
7 views

Is spinOnce needed?

If I have ROS node that has an infinite loop that has other things running, do I need to use spin or spinOnce? The other items have specific timing such as 100 and 50 Hz but the subscriber I have ...
user avatar
0 votes
1 answer
72 views

How do I get out of ros::spin() in another thread?

Hi All, So what I am doing is enumerated in the points below. After that, I explain my questions in detail. I recently got my hands on an ATI force/torque sensor which is pretty cool. I already had ...
user avatar
0 votes
2 answers
37 views

ros::spinOnce() not functioning properly

Hello, So I went through the tutorials for publishing/subscribing for a message over a ROS topic over here http://ros.org/wiki/ROS/Tutorials/WritingPublisherSubscriber%28c%2B%2B%29 So, I ran ...
user avatar
0 votes
1 answer
4 views

Some functions are not called and ros::spin() issue

I am having some parts of code that are not called. The code is here. The scanCallback() function is not called at all, I think(I don't know what to be passed in from the main function as it is a ...
user avatar
0 votes
2 answers
53 views

ros service callback blocks the other node callbacks?

Hi all! Does a slow service callback prevent the other callbacks from running? Is there a multi-thread solution behind the scenes, or a FIFO queue? In the situation that there's a service with a ...
user avatar
0 votes
1 answer
8 views

Is it possible to avoid busy-waiting in a spinner?

I've read the Callbacks and Spinning page, and have written the following spinner: ...
user avatar