Page 1 of 1

ROS2 connection missing Float32MultiArray

Posted: 21 Feb 2024, 11:48
by JevJefferson
Hello!

I have ran into a following problem when trying to subscribe to rostopic that passes Float32MultiArray type messages

Traceback (most recent call last):
script, line 42, in sysCall_init
Exception in sim.genericFunctionHandler: Unsupported message type 'std_msgs/msg/Float32MultiArray'. You may want to add it to meta/interfaces.txt and recompile the ROS2Interface plugin.


I tried to do as it said in the error message - added std_msgs/msg/Float32MuliArray into meta/interfaces.txt file and recompiled the ROS2Interface plugin as it is said in the tutorial with following commands

Code: Select all

$ export COPPELIASIM_ROOT_DIR=~/path/to/coppeliaSim/folder
$ ulimit -s unlimited #otherwise compilation might freeze/crash
$ colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
But to no success, what could be solution to this problem?

Thanks!

Re: ROS2 connection missing Float32MultiArray

Posted: 21 Feb 2024, 12:26
by fferri
JevJefferson wrote: 21 Feb 2024, 11:48

Code: Select all

$ export COPPELIASIM_ROOT_DIR=~/path/to/coppeliaSim/folder
$ ulimit -s unlimited #otherwise compilation might freeze/crash
$ colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
That is correct.

Verify that the plugin file (libsimROS2.so) is installed to the correct location of coppeliaSim executable.