ihmcrobotics / ihmc-java-ros2-communication

Realtime safe implementation of ROS2 in Java.
Apache License 2.0
21 stars 5 forks source link

Can't receive large image #7

Open EltonCN opened 3 years ago

EltonCN commented 3 years ago

I tested the library to receive image messages, and it works great with test images. But when I try with the real image that is full HD 1920×1080 it receives nothing.

I tried crop the image on publisher node to 10x10 and it worked, so maybe the library has some issues with receving large messages? I'm also using Foxy distro on Windows, so maybe it's compability problem.

ecmnet commented 2 years ago

Same experience here. Reason: Max data length in ImagePubSubType.java is set to 100 bytes.

calvertdw commented 2 years ago

Hi guys, yes it's necessary to set some of the message fields sizes larger and regenerate the messages. We haven't done that because we mostly use custom messages we maintain so far. We also don't have much resources to provide support for this library, but it is seeing some updates. The latest development effort is here: https://github.com/SamuelWHalodi/ihmc-pub-sub-group/tree/feature/xml-config

calvertdw commented 2 years ago

and by the way I am referring to these messages: https://github.com/ihmcrobotics/ihmc-open-robotics-software/tree/develop/ihmc-interfaces/src/main/messages/ihmc_interfaces/controller_msgs/msg