ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

SeanPayne's profile - activity

2019-09-24 15:01:28 -0500 received badge  Good Question (source)
2015-03-21 19:12:00 -0500 received badge  Good Answer (source)
2015-03-21 19:12:00 -0500 received badge  Enlightened (source)
2014-07-17 08:09:39 -0500 received badge  Nice Answer (source)
2014-01-28 17:21:46 -0500 marked best answer 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 I thought I'd ask before venturing there. If there is any general guidance on using threads and ros, that would be appreciated.

2013-01-24 04:42:14 -0500 received badge  Famous Question (source)
2013-01-24 04:42:14 -0500 received badge  Notable Question (source)
2013-01-24 04:42:14 -0500 received badge  Popular Question (source)
2012-09-16 05:15:32 -0500 received badge  Famous Question (source)
2012-08-16 07:42:39 -0500 received badge  Famous Question (source)
2012-07-13 22:32:04 -0500 received badge  Notable Question (source)
2012-03-08 21:00:14 -0500 received badge  Notable Question (source)
2012-01-16 20:48:41 -0500 received badge  Taxonomist
2011-12-17 12:47:54 -0500 received badge  Self-Learner (source)
2011-12-17 12:47:54 -0500 received badge  Teacher (source)
2011-12-12 02:44:54 -0500 received badge  Popular Question (source)
2011-10-18 11:39:26 -0500 received badge  Popular Question (source)
2011-08-31 07:06:01 -0500 received badge  Good Question (source)
2011-05-16 21:59:48 -0500 received badge  Nice Question (source)
2011-05-16 12:25:56 -0500 marked best answer how do I publish a new ros node or package?

If you have a new package which you would like to announce and get indexed please email the ros-users mailing list to announce it and we will add it to our documentation indexer.

2011-05-13 13:29:42 -0500 asked a question how do I publish a new ros node or package?

I've written a small ROS package and uploaded the source to a repository on github.

It's a package to provide some interfaces between ROS and the SIG EVO car racing championship simulation.

I thought I would then be able to then publish my package so that it would show up on http://www.ros.org/browse/list.php somewhere.

I had a look on ros.org for how to do this, but can't see it. Am I on the right track? Or should I add my node to an approved repository?

2011-03-28 00:49:08 -0500 received badge  Nice Question (source)
2011-03-28 00:49:05 -0500 marked best answer is ros client c++ code thread safe?

roscpp is threadsafe. There is a summary of the threading model in the roscpp overview on the Callbacks and Spinning page.

2011-03-18 05:37:04 -0500 commented answer nav_msgs/Odometry.h: No such file or directory
I definitely progressively installed components while bringing my stuff up (adding things to my manifest over time) and would also speculate that is part of the puzzle. If I can narrow the issue down I'll post a ticket.
2011-03-17 10:52:05 -0500 answered a question nav_msgs/Odometry.h: No such file or directory

I figured out a tip for this type of problem: Look at CMakeCache.txt in the root of your package - it shows all of the directories being searched by rosmake

And a solution to my specific problem: Delete CMakeCache.txt - for some reason mine was broken and this is why the compile was failing.

So in general, if this type of issue comes up again and I've done the sort of things suggested by Sabrina above - I'll just delete my CMakeCache.txt to see if it resolves the issue - else debug further into CMakeCache.txt

2011-03-17 10:33:41 -0500 edited question nav_msgs/Odometry.h: No such file or directory

I've just tried to add odometry to my node and when building I get the error: [ 69%] Built target rosbuild_precompile [ 73%] Building CXX object CMakeFiles/client.dir/src/client/RosDriver.o /home/sean/ros/sigevo_champ/src/client/RosDriver.cpp:19: fatal error: nav_msgs/Odometry.h: No such file or directory
compilation terminated.

I expect that it should be able to include that file because I specified nav_msgs as a dependency in my manifest.xml.

I've been trying to debug this and I'm stuck.

My manifest does include the nav_msgs package.

I haven't had issues with std_msgs. I'm using diamondback source install.

What is the next best step? Is there a way to log exactly where the build is searching for files? What would you do?

I tried Sabrina's suggestions but after this check it still fails to build Can you find nav_msgs with "rospack find nav_msgs"? -> Yes Is nav_msgs compiled? -> Yes Can you access the file with "rosed nav_msgs Odometry.h"? -> Yes

2011-03-17 10:33:41 -0500 received badge  Editor (source)