Questions tagged [threads]

The tag has no usage guidance.

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

Executors do not spin correctly when launched separately

Hello, I would like to build a modular package in which you can model some ROS systems using YAML files. You can find the github repository here: https://github.com/HarunTeper/ros_system_model However,...
user avatar
0 votes
1 answer
2 views

Thread related problem while subscribing/using data

Hi, I've been debugging my code recently and I've encountered this strange value assignments in my code (e.g. double value was set to ...
user avatar
0 votes
1 answer
2 views

Error: Threads Multiple Definition of

I have two GUI exactly the same except a few alterations. I copy-paste the code and changed only the node. Code: ...
user avatar
0 votes
1 answer
1 view

Multiple launchs in terminal

Hi! I'm running experiments in my project using turtlebot and kinect but i'd like to improve the speed of that by launching all the .launch files once for each experiment. Is that possible? For ...
user avatar
0 votes
1 answer
4 views

how are threads used to service callbacks in nodelets?

I have several nodelets, each subscribes to different messages (using the single threaded node handle). However, I realized one of my nodes, which subscribes to images and to odometry messages, and ...
user avatar
0 votes
2 answers
5 views

Independently change angular and linear velocities (cmd_vel)

Hi people! This is really an easy question for the experts: I am coding some roslisp/cram functions where I would like to change independently the angular and linear velocity of my robot in parallel ...
user avatar
0 votes
2 answers
1 view

Dynamic information flow between ROSJAVA nodes and ROSActivity

Hi All, When using ROSJAVA with android I'd like to pass information from the ROSActivity gui to the ros_node implementing nodeMain. Is there a way to do this without using the normal ROS message ...
user avatar
0 votes
1 answer
1 view

Using Actionlib for publishing force data in ROS

Hello All! So here is what I want to implement, in a simple list format I want to have a topic which publishes data from my force sensor (serial) onto the network constantly. I want to have a ...
user avatar
0 votes
1 answer
11 views

Spawning multiple Action Clients from one node

Hi All, I am creating several action server nodes to cater to different kinds of Actions that I need to perform. However, I find it inefficient to create 'n' Action Clients for the 'n' # of Action ...
user avatar
0 votes
1 answer
12 views

Publishing and subscribing to a topic in different threads

Hi all! I was just curious about this, before I actually sit for coding. Suppose I have a thread in which I am publishing to a topic. Then, can I subscribe to that same topic from some different ...
user avatar
0 votes
1 answer
1 view

How to avoid/manage process/thread starvation?

Short version: how to keep one (cpu bound) node from starving all other nodes without explicit sleep()? I have a system in which one node (in particular) is a cpu ...
user avatar
0 votes
1 answer
3 views

Calling ros::spinOnce() in nodelets?

Is it possible to integrate a while(true){ros::spinOnce(); ..} loop into a nodelet? I've based mine on the velodyne_driver nodelet, which runs a separate thread ...
user avatar
0 votes
1 answer
4 views

Threading function - udp client integration to a Ros node

Hi, I have working ROS node with callBacks for subscriptions, and also with timers like this: ...
user avatar
0 votes
2 answers
1 view

ros::ok() within pthread

I am have a couple of threads that run in a node. The threads have a while(ros::ok()) infinite loop inside. The problem is that when I Ctrl-C my program, it has to escalate to a SIGTERM because the ...
user avatar
0 votes
1 answer
1 view

Execute loops in multiple nodes at the same time?

Hello, I have a system that has two ROS nodes, each with a while loop that waits for a certain amount of time to pass. However, when the first node enters its loop, the rest of the system freezes ...
user avatar
0 votes
1 answer
1 view

programmatically killing Subscriber in another thread (ROSJAVA)

The title says it all. I have a subscriber in a separate runnable thread from my main program. When I close my main program, I want to kill the subscriber thread, but calling the stop() method below ...
user avatar
0 votes
2 answers
1 view

Running ROSJAVA as a thread in a larger app

How might the ROSJAVA talker example be spawned as a separate thread since it must be passed the NodeConfiguration at startup? I get an error stating that I cannot cast my main file to org.ros.node....
user avatar
0 votes
2 answers
7 views

How to spawn multiple nodes in same C++ process

Hello there, I want to spawn multiple nodes within the same C++ process. To this end I used boost/thread. All seems to work, except that always one of the nodes is not showing up in 'rosnode list'. ...
user avatar
0 votes
2 answers
20 views

Multiple Threads in Single ROS Node

What is the preferred threading library to use when trying to write a ROS node with multiple threads? Boost::Thread ? Posix ? Pthreads ? Are there any issues with callback functions when multiple ...
user avatar
0 votes
1 answer
67 views

What "escalating to SIGTERM" mean?

Hi everyone ! I have develop my on keyboard to start doing a teleoperation, to read the keys I have created a thread and and i have a ros::rate to publish my data in other frequency. But when I kill ...
user avatar
0 votes
2 answers
1 view

How much can I control ROS real-time behavior?

Hello all, I'm quite new on ROS and I've a question which answer could not find in the web. The question is originated by this phrase: "ROS is not a realtime framework, though it is possible to ...
user avatar
0 votes
1 answer
5 views

is ros client c++ code thread safe?

Can I initialize and run the ros C++ client code in it's own thread? I'm thinking of creating a thread, and in the thread initializing ROS, then having my main loop run there. I can't see why not, but ...
user avatar