Questions tagged [asyncspinner]
The asyncspinner tag has no summary.
20 questions
1
vote
0
answers
61
views
ROS: Further understanding the diffrence of MultiThreadedSpinner and AsyncSpinner
I have several years of experience with robot software development using ROS, especially ROS Noetic. I want to clarify my understanding about ...
2
votes
2
answers
1k
views
spin_until_future_complete in an already spinning node
I’m making a program, this program has a rclcpp::node and is running with several threads. In the main thread I have
executor.add_node(node);
executor.spin();
this ...
0
votes
1
answer
559
views
Do Timers run in different threads? [roscpp]
I'm wondering if I'm setting up different timers, do they run in different threads using roscpp? The background is that one Timer callback is taking a longer time to be executed and, therefore, I want ...
0
votes
1
answer
30
views
Does ros::shutdown() also stop all Async spinner threads?
This might be a very basic question but I couldn`t find an exact answer anywhere . Does the ros::shutdown() command also stop all the Async spinner threads automatically?
I have a lot of blocking ...
0
votes
1
answer
32
views
AsyncSpinner and MoveIt!
Hello,
When I followed the tutorials of MoveIt!(C++), I found this line:
ros::AsyncSpinner spinner(1);
spinner.start();
I searched for it and know its ...
0
votes
1
answer
53
views
Stopping std::threads in ROS
I am trying to stop two threads from within a while loop but it doesn't stop on the Ctrl+C (SIGINT).How do I terminate the threads on receiving Ctrl+C from CLI? Would an ...
0
votes
1
answer
35
views
How to decide the thread count for AsyncSpinner?
I am using AsyncSpinner on ROS Indigo to receive the data from multiple point cloud sensors simultaneously. Below is the same code:
...
0
votes
1
answer
36
views
Nodes are takin 100% cpu on any computer
Hi,
I am using couple callback queues in my nodes with asyncSpinner. It does not matter on which computer I'm placing it (Odroid XU4, NUC) it does consume 100% CPU. Can anyone point o what I'm missing ...
0
votes
1
answer
128
views
ROS Threading, AsyncSpinners and Control
Hello everybody,
I am a relatively new ROS user (but I've spent years working with other middlewares), and up to now I am generally happy about it. I have a doubt related to my software framework I ...
0
votes
1
answer
23
views
Subcriber callback's rate is lower then publisher's publish rate
Hi,
I've been working on the implementation of a EKF and have been running into a strange issue.
As some may be familiar the Kalman filter algorithm can be viewed as running two process. The Update ...
0
votes
1
answer
166
views
Does every ROS node need to spin()?
I have been using ROS for a short time now and learned about callbacks & spinning. My question is, since be default all callbacks are added to the global callback queue, does ros::spin() in node A ...
0
votes
1
answer
19
views
multithread can't read 2 topics
I am trying to subscribe to multiple topics and then publish them in a single personal topic, somehow i can't make it run with 2 topics... it only gets the subscription callback for fcu/current_pose (...
0
votes
1
answer
43
views
Confusion about AsyncSpinner
Hi, I am confused about the behavior of AsyncSpinner.
My understanding is that AsyncSpinner would allow a node to process ...
0
votes
1
answer
29
views
roscpp Callback Thread Safety SEGFAULT
I'm currently subscribing to every topic ever published in my program via ShapeShifter, and deserializing as necessary. This works great, but I'm receiving ...
0
votes
2
answers
418
views
How to bind a node to a specific cpu core?
Dear all,
I am tyring to run a node with a specific cpu core but have no idea how to do that.
What's more, I also want to specify the cpu core of callback functions. I know I can use asynchronous ...