Questions tagged [multi-thread]
The multi-thread tag has no summary.
26 questions
0
votes
1
answer
288
views
MicroROS and Multithreading - freeRTOS vs Zephyr
I would like to get to know MicroROS. Therefore I worked with one of the recommended boards (Olimex STM32-E407) for the last weeks. And I have a few questions.
I really want to know if MicroROS is ...
0
votes
0
answers
43
views
Executor multithread doesnt work
Im having problems to execute tasks from 2 nodes using the multithreadExecutors and the call_back groups.
I'm running 1 node with 2 classes:
...
0
votes
1
answer
56
views
I'm confused with callback_groups and threads
Hi,
I want to get a value from a topic and after perform some operations on the value retrieved (can't be in the callback function).
I imagine a subscriber and this simple loop (python)
...
0
votes
1
answer
31
views
ros::ok() and ros::isShutingDown() and thread
I used ros::ok and ros::isShuttingDown inside a thread to find out if the user closed roscore in the terminal by pressing Cnrl+C. However, when I do that, the values of those to function do not change,...
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 ...
1
vote
1
answer
2k
views
ROS2 Best practices: multiple nodes in the same process
Hi,
I was wondering if there are any best practices for implementing multiple ROS2 nodes in the same process.
So far I see the following options:
std::thread / pthread
SingleThreadedExecutor
...
0
votes
1
answer
42
views
roscpp service calls - multithreading
I have a service created in C++ that only handles one request at a time. Normally this would not be a problem, but my service is computing a Descartes trajectory, which takes somewhere between 3-8 ...
0
votes
1
answer
22
views
Increase thread count of Asyncspinner? (Multi-threading)
Hey guys,
I have a world_node which offers a service to register_new_robot.
Once called, the service creates a new C++ object ...
0
votes
1
answer
77
views
how to write a thread in ROS
I would like to know how to write a async thread in ROS. An example would be greatly appreciated.
Edwin
Originally posted by elthef on ROS Answers with karma: 26 on 2015-09-21
Post score: 1
0
votes
1
answer
54
views
How implement a multi-threaded ROS node with callbacks not being subscribers?
I would like to implement a node which listens to a TCP socket which receives asynchronous data, converts it into messages and publishes the latest of these messages at a fix rate in a topic.
The best ...
0
votes
1
answer
82
views
How to run ros::spin in the background
Hi,
I have a qt application and which has many Callbacks. As I dont have and infinite loop, I can't write ros::spin(). I would like to have ros::spin() or spinonce() in the background. How can i ...
0
votes
1
answer
19
views
ROS multi thread c++
I developed two separate program and tested them. One program is for socket communication with external network the other one is for internal ros work. But then I add the first program as thread into ...
0
votes
1
answer
13
views
multi-threading -> cholesky factorization error, rospy
Hello All,
I have two callbacks within a class that share the same data in python. Is it possible that these callbacks are altering the data at the same time?
I am getting an error while trying to ...
0
votes
1
answer
52
views
Multithreaded RViz?
When running Movit on my desktop, RViz cannot show smoothly arm trajectories. Well, it looks cool at the beginning, but after 2 or 3 extra plannings/executions, CPU load reaches 100% and arm ...
0
votes
1
answer
148
views
ROS MultiThreading example
Hello,
I'm currently working on a node that provides a service to other nodes but I noticed that being a server blocks the execution of the node until a Request. As my node needs to handle some ...