Page 1 of 1

Pb to get ROS2 for Ubuntu 22.04

Posted: 01 Oct 2024, 15:38
by juhel
Hi,

I've just downloaded the V4.7.0 rev 4 for Ubuntu 22.04.

When I try to use ROS2 as specify in the documentation, I get this error :

Code: Select all

> simROS2 = require('simROS2')
[sandboxScript:error] plugin simROS2: Cannot load library /home/me/Applications/CoppeliaSim_Edu_V4_7_0_rev4_Ubuntu22_04/libsimROS2.so: (libnav_msgs__rosidl_typesupport_cpp.so: cannot open shared object file: No such file or directory)
Error: .../CoppeliaSim_Edu_V4_7_0_rev4_Ubuntu22_04/lua/simROS2.lua:5: attempt to index a nil value (local 'simROS2')
The file exists :

Code: Select all

me@koala:~/Applications/CoppeliaSim_Edu_V4_7_0_rev4_Ubuntu22_04$ ls -al libsimROS2.so 
-rwxrwxr-x 1 me me 12994992 Jun 28 13:13 libsimROS2.so
What is the problem? Should I have to recompile this .so?

Philippe

Re: Pb to get ROS2 for Ubuntu 22.04

Posted: 30 Jan 2025, 12:08
by SVA07
Hi there!

Got the exact problem, but with version 4.8. I have downgrade to 4.7 and solve this issue sourcing first ros2 environment.

This is what I made:

Code: Select all

source /opt/ros/humble/setup.bash

Code: Select all

export COPPELIASIM_ROOT_DIR=/home/sva/Documents/Installers/CoppeliaSim_Edu_V4_7_0_rev4_Ubuntu22_04/

Code: Select all

cd /home/sva/Documents/Installers/CoppeliaSim_Edu_V4_7_0_rev4_Ubuntu22_04/

Code: Select all

./coppeliaSim
Then, once coppeliaSim is opened, I use the "topic_publisher.ttt" scene to test if it works (you can found it in CoppeliaSim_Edu_V4_7_0_rev4_Ubuntu22_04/programming/ros2_packages/sim_ros2_interface/examples/ directory).

Hope it helps,

Sergio

Re: Pb to get ROS2 for Ubuntu 22.04

Posted: 30 Jan 2025, 17:13
by fferri
Rebuilding the plugin typically solves those issues