since the release of CoppeliaSim 4.5.1 and the rename of the module simExtROS2 to simROS2, I have the following problem with my scene at launch:
[/differential_drive/Hokuyo@childScript:error] 46: in simROS2.createPublisher@simExtROS2: Unsupported message type 'sensor_msgs/msg/LaserScan'. You may want to add it to meta/interfaces.txt and recompile the ROS2Interface plugin.
stack traceback:
[C]: in field 'createPublisher'
[string "/differential_drive/Hokuyo@childScript"]:46: in function 'sysCall_init'
[/differential_drive@childScript:error] 16: in simROS2.createSubscription@simExtROS2: Unsupported message type 'geometry_msgs/msg/Twist'. You may want to add it to meta/interfaces.txt and recompile the ROS2Interface plugin.
stack traceback:
[C]: in field 'createSubscription'
[string "/differential_drive@childScript"]:16: in function 'sysCall_init'
I added the two messages in the interfaces.txt file and recompiled. I don't think I'm doing something wrong here, since it was working normally in the past.
you installed libsimExtROS2.so into the CoppeliaSim's directory
you source the ROS2 environment (setup.sh / local_setup or similar) in the terminal where you would run CoppeliaSim
you checked plugin load message for errors
1) when i compile the plugin, i obtain a new libsimROS2.so (not libsimExtROS2.so) in the folder. Checked deleting the old .so file everytime.
2) done
3) i don't have anymore any message regarding the load of the ros2 plugin in the terminal. Previously i had the message when it was working with Coppelia 4.4 and libsimExtROS2. Now nothing. I have only the error
ROS2 interface was not found. Cannot run.
inside coppelia.
I tried going back in the commit of simROS2 on github, still different problem arise. Now i will check if with coppelia 4.4 everything is ok.
If building for CoppeliaSim 4.4 (or any other specific version) you have to checkout the corresponding git branch in the plugin repository, e.g. git checkout coppeliasim-v4.4.0-rev0