cannot convert imu messages from bagfile to csv file
I'm trying to convert this bagfile to csv:
With this command:
rostopic echo -b imu.bag -p /android/imu
I get this error:
Traceback (most recent call last):
File "/opt/ros/hydro/bin/rostopic", line 35, in <module>
rostopic.rostopicmain()
File "/opt/ros/hydro/lib/python2.7/dist-packages/rostopic/__init__.py", line 1666, in rostopicmain
_rostopic_cmd_echo(argv)
File "/opt/ros/hydro/lib/python2.7/dist-packages/rostopic/__init__.py", line 1026, in _rostopic_cmd_echo
_rostopic_echo(topic, callback_echo, bag_file=options.bag)
File "/opt/ros/hydro/lib/python2.7/dist-packages/rostopic/__init__.py", line 671, in _rostopic_echo
_rostopic_echo_bag(callback_echo, bag_file)
File "/opt/ros/hydro/lib/python2.7/dist-packages/rostopic/__init__.py", line 649, in _rostopic_echo_bag
for t, msg, timestamp in b.read_messages():
File "/opt/ros/hydro/lib/python2.7/dist-packages/rosbag/bag.py", line 2062, in read_messages
yield self.seek_and_read_message_data_record((entry.chunk_pos, entry.offset), raw)
File "/opt/ros/hydro/lib/python2.7/dist-packages/rosbag/bag.py", line 2198, in seek_and_read_message_data_record
msg_type = _get_message_type(connection_info)
File "/opt/ros/hydro/lib/python2.7/dist-packages/rosbag/bag.py", line 1309, in _get_message_type
message_type = genpy.dynamic.generate_dynamic(info.datatype, info.msg_def)[info.datatype]
File "/opt/ros/hydro/lib/python2.7/dist-packages/genpy/dynamic.py", line 151, in generate_dynamic
for l in msg_generator(msg_context, spec, search_path):
File "/opt/ros/hydro/lib/python2.7/dist-packages/genpy/generator.py", line 733, in msg_generator
genmsg.msg_loader.load_depends(msg_context, spec, search_path)
File "/opt/ros/hydro/lib/python2.7/dist-packages/genmsg/msg_loader.py", line 344, in load_depends
return load_msg_depends(msg_context, spec, msg_search_path)
File "/opt/ros/hydro/lib/python2.7/dist-packages/genmsg/msg_loader.py", line 313, in load_msg_depends
depspec = load_msg_by_type(msg_context, resolved_type, search_path)
File "/opt/ros/hydro/lib/python2.7/dist-packages/genmsg/msg_loader.py", line 119, in load_msg_by_type
file_path = get_msg_file(package_name, base_type, search_path)
File "/opt/ros/hydro/lib/python2.7/dist-packages/genmsg/msg_loader.py", line 78, in get_msg_file
% (base_type, package, search_path))
Cannot locate message [Header]: unknown package [std_msgs] on search path [{}]