ROS2 connection missing Float32MultiArray

Typically: "How do I... ", "How can I... " questions
Post Reply
JevJefferson
Posts: 5
Joined: 12 Feb 2024, 20:52

ROS2 connection missing Float32MultiArray

Post 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!

fferri
Posts: 1217
Joined: 09 Sep 2013, 19:28

Re: ROS2 connection missing Float32MultiArray

Post 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.

Post Reply