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

gerkey's profile - activity

2021-11-25 05:25:47 -0500 received badge  Nice Answer (source)
2021-06-10 23:56:57 -0500 received badge  Necromancer (source)
2020-12-30 16:34:38 -0500 received badge  Necromancer (source)
2020-12-18 14:53:18 -0500 answered a question error: undefined reference to `pcl::visualization::PCLVisualizer::createActorFromVTKDataSet()'

My guess is that you're not linking against pcl_visualization. Here's a minimal program containing your code, along with

2020-12-18 13:48:45 -0500 commented question parameter error when running

I don't have a Kinetic install handy for testing, but from tracing the errors, it would seem that this xacro invocation

2020-12-18 13:48:21 -0500 commented question parameter error when running

I don't have a Kinetic install handy for testing, but from tracing the errors, it would seem that this xacro invocation

2020-12-18 13:48:05 -0500 commented question parameter error when running

I don't have a Kinetic install handy for testing, but from tracing the errors, it would seem that this xacro invocation

2020-12-18 13:38:26 -0500 edited question parameter error when running

parameter error when running Can you have a look at this error I am trying to run a Clearpath grizzly environment using

2020-12-18 13:31:00 -0500 answered a question ROS Topics not being published with Gazebo

@tryan's two points are right: for a single camera you should use the camera_controller plugin, and you should put the p

2020-07-07 09:26:10 -0500 received badge  Enlightened (source)
2020-07-07 09:26:10 -0500 received badge  Good Answer (source)
2020-07-07 07:35:26 -0500 received badge  Nice Answer (source)
2020-07-06 19:35:47 -0500 answered a question Why does bloom `export LDFLAGS=`?

After a trip into the basement where they keep the Ark of the Covenant, I found an email that I sent to Jeremy Leibs and

2016-08-05 07:21:30 -0500 answered a question jade - rosbag play with remap

I don't have a Jade setup to test with, but I was able to remap playback on Indigo.

You want to use the remap tag inside the node tag. E.g.:

<launch>
  <arg name="file"/>
  <node pkg="rosbag" type="play" name="playback" ns="myNamespace" args="—clock $(arg file)">
     <remap from="/myTopic" to="/playback/myTopic"/>
  </node>
</launch>

That should result in the recorded topic /MyTopic being published as /playback/myTopic. To be honest, I'm not certain exactly how the remap interacts with the namespace specification (my initial testing suggests that the namespace into which you put rosbag play doesn't affect the scoping of its published topics).

At the command-line, I was able to remap topics in the usual way, using the same syntax that you suggested.

If these techniques aren't working for you on Jade, then please open an issue: https://github.com/ros/ros_comm/issues .

2016-02-26 08:00:18 -0500 received badge  Good Answer (source)
2016-02-26 03:43:40 -0500 received badge  Nice Answer (source)
2016-02-25 17:15:00 -0500 received badge  Teacher (source)
2016-02-25 17:09:10 -0500 answered a question What is the best way for CMakeLists.txt to check if ROS is installed?

From CMake, I would use the result from find_package() without REQUIRED. For example, if you know that you need roscpp:

find_package(roscpp QUIET)
if(NOT roscpp_FOUND)
  message(STATUS "Couldn't find roscpp, so not building ROS-specific functionality. Did you source the ROS setup.sh file?")
else()
  message(STATUS "Found roscpp installed at ${roscpp_DIR}, so building ROS-specific functionality.")
  include_directories(${roscpp_INCLUDE_DIRS})
  #....
endif()

You can do the same for each ROS package that you need, if they're all optional. Or you could use a common package like roscpp as a global indicator to turn on or off ROS support, and just make all the others REQUIRED.

Of course, as @jackie said, you first need to have configured your environment so that find_package() can locate ROS packages. But I think that that's better than trolling through the file system looking for ROS. Among other things, it leaves it open to the user to not configure his or her environment to be able to locate ROS packages, thereby disabling the optional ROS support.

2015-04-17 10:54:23 -0500 answered a question SIGPIPE Conflict and Unmasking

That code is pretty old, so it's hard to know, but I would guess that the purpose is to avoid the chance of receiving a SIGPIPE due to something bad happening to a socket, which could happen pretty often, given how many sockets we might be using and the variety of network conditions we're running in. As you point out, the default behavior for SIGPIPE is to terminate the program, so if we expect to receive it, then we either need to ignore it or catch it.

I don't see a problem with your workaround of unmasking SIGPIPE and catching it yourself. But you should know that you might get SIGPIPEs that are generated due to roscpp's sockets, as opposed to your own resources.