davidhodo / ros2_idl_demo

Test package for ROS2 idl message generation.
11 stars 3 forks source link

ROS2 send image to fastRTPS #1

Open golizheh opened 4 years ago

golizheh commented 4 years ago

Hej David,

I want to send message from ROS2 (cam2image) at the ROS2 demo exmaple to fastRTPS.

I have found IDL for this exmaple which is called Image.idl , Then I want to use fastrtpsgen to generate files for public and subscriber with IDL, when I run fastrtpsgen -example x64Linux2.6gcc Image.idl

It is return back me an error which is Uint is undefined. My Image.IDL is looks like below: // generated from rosidl_adapter/resource/msg.idl.em // with input from sensor_msgs/msg/Image.msg

module sensor_msgs { module msg { /*

Is there any help

woutervdhof commented 4 years ago

Hi golizheh,

I ran into the same problem. It's a while back, but I think you can fix this by replacing uint32 by 'unsigned long'.