ros2-java / ros2_java

Java and Android bindings for ROS2
Apache License 2.0
162 stars 91 forks source link

Too slow to convert to java from cpp #213

Open aitazhixin opened 2 years ago

aitazhixin commented 2 years ago

There is a topic with type std_msgs/msg/Float32MultiArray. When the msg was received in APP, convert from cpp to java will spend 100ms. Because of array elements being convert to Float Object in java from c++ float. Why not generate Float32MultiArray with data type float[]?

aitazhixin commented 2 years ago

@esteve can you help to convert List to float[]?

jacobperron commented 2 years ago

@aitazhixin Is this PR relevant https://github.com/ros2-java/ros2_java/pull/165?