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

rosbag results in OSError

asked 2011-08-21 20:38:17 -0500

mrath gravatar image

updated 2012-02-20 11:34:11 -0500

Kevin gravatar image

Hello all, I'm trying to run this tutorial, but rosbag fails to record data. I tried both the specified instructions

rosbag record -a

as well as recording a single topic

rosbag record /turtle1/command_velocity

but either results in the same error:

Traceback (most recent call last):
  File "/Users/mrath/ros/ros/bin/rosbag", line 35, in <module>
  File "/Users/mrath/ros/ros_comm/tools/rosbag/src/rosbag/", line 807, in rosbagmain
  File "/Users/mrath/ros/ros_comm/tools/rosbag/src/rosbag/", line 115, in record_cmd
    os.execv(recordpath, cmd)
OSError: [Errno 2] No such file or directory

I'm running ROS in OS X Lion, which I suppose is the problem, but I have no clue to the solution, so please advise.

edit retag flag offensive close merge delete


Have you followed the guide to date for OSX Lion? It is currently very unstable, and would probably not make the best platform to learn on until it stabilizes a bit.
mjcarroll gravatar image mjcarroll  ( 2011-08-22 08:06:41 -0500 )edit
This: is currently the best approach at getting ROS working on Lion. Many tools are still not working, so use at your own risk. I would suggest a Ubuntu VM for now.
mjcarroll gravatar image mjcarroll  ( 2011-08-22 09:58:36 -0500 )edit
The most up-to-date instructions now live at:
William gravatar image William  ( 2011-11-08 14:40:21 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2011-08-22 04:34:08 -0500

kwc gravatar image

This error probably means that rosbag has not been built properly. The most likely cause of the error is because rosbag/bin/record does not exist.

edit flag offensive delete link more

Question Tools


Asked: 2011-08-21 20:38:17 -0500

Seen: 424 times

Last updated: Aug 22 '11