alexsazo / rosjava

Automatically exported from code.google.com/p/rosjava
0 stars 0 forks source link

ROS Java std_msgs/MultiArrayLayout error #158

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Publish a Int16MultiArray (or any *MultiArray) object in ROS Java
2. Record your published message to a ROS Bag
3. Attempt to open the ROS Bag in RXBag or parse your bag using the ROS bag API.

What is the expected output? What do you see instead?
You would expect to see the Int16MultiArray message being parsed correctly.  
Instead, you get the following message from the ROS Bag API: 

Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/opt/ros/fuerte/lib/python2.7/dist-packages/rxbag/timeline.py", line 
1923, in run
msg_data = self._get_message(bag, playhead_position)
File "/opt/ros/fuerte/lib/python2.7/dist-packages/rxbag/timeline.py", line 
1936, in _get_message
msg_data = self.timeline.read_message(bag, position)
File "/opt/ros/fuerte/lib/python2.7/dist-packages/rxbag/timeline.py", line 708, 
in read_message
return bag._read_message(position)
File "/opt/ros/fuerte/lib/python2.7/dist-packages/rosbag/bag.py", line 774, in 
_read_message
return self._reader.seek_and_read_message_data_record(position, raw)
File "/opt/ros/fuerte/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/fuerte/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/fuerte/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/fuerte/lib/python2.7/dist-packages/genpy/generator.py", line 
725, in msg_generator
genmsg.msg_loader.load_depends(msg_context, spec, search_path)
File "/opt/ros/fuerte/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/fuerte/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/fuerte/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/fuerte/lib/python2.7/dist-packages/genmsg/msg_loader.py", line 
78, in get_msg_file
% (base_type, package, search_path))
MsgNotFound: Cannot locate message [MultiArrayLayout]: unknown package 
[std_msgs] on search path [{}]

The error message says something about the search path, but the search path is 
set correctly, as I am able to parse other messages from the std_msgs ROS Java 
package without problems.

What version of the product are you using? On what operating system?
ROS Java Core 0.0.0 (?)
ROS Fuerte

Please provide any additional information below.

Original issue reported on code.google.com by AMittlei...@gmail.com on 10 Jun 2013 at 5:00

GoogleCodeExporter commented 9 years ago
Also you can notice that the problem is not specifically with Int16MultiArray 
or Float16MultiArray, but rather the problem is with the MultiArrayLayout, 
which is within each of the *MultiArray objects.

Thanks for any advice

Original comment by AMittlei...@gmail.com on 10 Jun 2013 at 5:02