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

rosrun will not execute despite successful build

asked 2014-10-14 19:40:11 -0600

After a successful catkin_make, I made sure to source devel/setup.bash inside the catkin workspace and ran roscore. The output of echo "$ROS_PACKAGE_PATH" is "/home/alex/kinect_bench/src:/opt/ros/hydro/share:/opt/ros/hydro/stacks".

I get his warning from catkin_make:

In file included from /usr/include/c++/4.6/backward/strstream:52:0,
             from /usr/include/vtk-5.8/vtkIOStream.h:112,
             from /usr/include/vtk-5.8/vtkSystemIncludes.h:40,
             from /usr/include/vtk-5.8/vtkIndent.h:24,
             from /usr/include/vtk-5.8/vtkObjectBase.h:43,
             from /usr/include/vtk-5.8/vtkSmartPointerBase.h:26,
             from /usr/include/vtk-5.8/vtkSmartPointer.h:23,
             from /usr/include/pcl-1.7/pcl/visualization/point_cloud_geometry_handlers.h:48,
             from /usr/include/pcl-1.7/pcl/visualization/point_cloud_handlers.h:41,
             from /usr/include/pcl-1.7/pcl/visualization/common/actor_map.h:40,
             from /usr/include/pcl-1.7/pcl/visualization/pcl_visualizer.h:47,
             from /usr/include/pcl-1.7/pcl/visualization/cloud_viewer.h:39,
             from /home/alex/kinect_bench/src/grabber/src/openni_grabber.cpp:2:

/usr/include/c++/4.6/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]

also, when I run roswtf the output is:

Loaded plugin tf.tfwtf No package or stack in context
================================================================================ Static checks summary:

Found 1 error(s).

ERROR Not all paths in PYTHONPATH [/home/alex/kinect_bench/devel/lib/python2.7/dist-packages:/opt/ros/hydro/lib/python2.7/dist-packages] point to a directory:   * /home/alex/kinect_bench/devel/lib/python2.7/dist-packages

================================================================================ Beginning tests of your ROS graph. These may take awhile... analyzing graph... ... done analyzing graph running graph rules... ... done running graph rules

Online checks summary:

Found 1 warning(s). Warnings are things that may be just fine, but are sometimes at fault

WARNING The following node subscriptions are unconnected:  * /rosout:    * /rosout

my CMakeLists:

cmake_minimum_required(VERSION 2.8.3)

find_package(catkin REQUIRED COMPONENTS

find_package(Boost REQUIRED COMPONENTS system)

  INCLUDE_DIRS include
  LIBRARIES grabber
  CATKIN_DEPENDS pcl_conversions pcl_msgs pcl_ros roscpp sensor_msgs std_msgs
  DEPENDS system_lib


#  src/${PROJECT_NAME}/grabber.cpp

# target_link_libraries(grabber_node
#   ${catkin_LIBRARIES}
# )



add_executable (grabber src/openni_grabber.cpp)
target_link_libraries (grabber ${PCL_LIBRARIES} ${catkin_LIBRARIES})

my package.xml;

<?xml version="1.0"?>
  <description>The grabber package</description>
  <maintainer email="alex@todo.todo">alex</maintainer>

Thanks for any help

edit retag flag offensive close merge delete


What is the exact command that is failing? is it rosrun grabber grabber ?

ahendrix gravatar image ahendrix  ( 2014-10-14 20:15:06 -0600 )edit

the failing command is rosrun grabber openni_grabber openni_grabber is the file located at ~/kinect_bench/src/grabber/src/openni_grabber.cpp

kinect_guy gravatar image kinect_guy  ( 2014-10-14 21:01:07 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-10-15 01:26:06 -0600

ahendrix gravatar image

The add_executable(grabber src/openni_grabber.cpp) line in your CMakeLists is creating an executable named grabber. Therefore, the correct command to run your program is:

rosrun grabber grabber
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-10-14 19:40:11 -0600

Seen: 1,083 times

Last updated: Oct 15 '14