Open vmatos opened 8 years ago
Actually in my Ubuntu14.04+Jade + jade-devel, message headers are included from:
build/rosserial_tivac_tutorials/ros_lib/rosserial_tivac_tutorials/<msgheader>
.
Todo: Check if in Kinetic the generated headers are copied there.
Exporting rosserial_tivac_tutorials
Messages:
Buttons,[rosserial_tivac_tutorials]: Unable to build messages: 'NoneType' object has no attribute '_md5sum'
Traceback (most recent call last):
File "/home/vmatos/ros/rosserial_ws/install/lib/python2.7/dist-packages/rosserial_client/make_library.py", line 578, in rosserial_generate
MakeLibrary(p, path, rospack)
File "/home/vmatos/ros/rosserial_ws/install/lib/python2.7/dist-packages/rosserial_client/make_library.py", line 510, in MakeLibrary
md5sum = roslib.message.get_message_class(package+'/'+f[0:-4])._md5sum
AttributeError: 'NoneType' object has no attribute '_md5sum
roslib.message.get_message_class(package+'/'+f[0:-4])
returns None
When I source devel
of the package which contains my msg definition, it works.
On Jade was not needed.
On Jade, the message class is found here:
def get_message_class(message_type, reload_on_error=False):
(...)
# try w/o bootstrapping
cls = genpy.message.get_message_class(message_type, reload_on_error=reload_on_error)
(...)
return cls
Example: Package rosserial_tivac_tutorials
contains custom messages, and a rosserial_client
project. The project depends on the custom messages contained on the package.
On Jade, with cmake 2.8 on Ubuntu 14.04:
_rosserial_tivac_tutorials_generate_messages_check_deps_ColorRGBA
is built_rosserial_tivac_tutorials_generate_messages_check_deps_Buttons
is built.<deps+rosserial_tiva_c>_generate_messages_py/cpp/lisp/eus
are built.devel
folder. rosserial_tivac_tutorials_ros_lib
is then built. On this target, a rosserial_client
python script is run, on make_library.MakeLibrary()
, on roslib.message.get_message_class(package+'/'+f[0:-4])
, the custom messages are found by genpy
through roslib
.rosserial_tivac_tutorials_buttons
On Kinetic, with cmake 3.5.1 on Ubuntu 16.04:
_rosserial_tivac_tutorials_generate_messages_check_deps_ColorRGBA
is built_rosserial_tivac_tutorials_generate_messages_check_deps_Buttons
is built.<deps+rosserial_tiva_c>_generate_messages_py/cpp/lisp/eus
are built.devel
folder. rosserial_tivac_tutorials_ros_lib
fails! Custom messages are not found by the script on rosserial_client
, on make_library.MakeLibrary()
. The error is described in the previous comments.
Message headers on
devel/include/rosserial_tivac_tutorials/
are not being included. Possibly related to issue: #1