Robotics StackExchange | Archived questions

Unable to build sim_ros2_interface for CoppeliaSim

I tried building sim_ros2_interface on humble for CoppeliaSim 4.4 but I am getting the following message:

  CMake Error at CMakeLists.txt:61 (find_package):
  By not providing "FindCoppeliaSim.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "CoppeliaSim", but CMake did not find one.

  Could not find a package configuration file provided by "CoppeliaSim"
  (requested version 4.4.0.0) with any of the following names:

    CoppeliaSimConfig.cmake
    coppeliasim-config.cmake

  Add the installation prefix of "CoppeliaSim" to CMAKE_PREFIX_PATH or set
  "CoppeliaSim_DIR" to a directory containing one of the above files.  If
  "CoppeliaSim" provides a separate development package or SDK, be sure it
  has been installed.

I am running Ubuntu 22.04. When I launch CoppeliaSim, it shows the following error message:

[CoppeliaSim:loadinfo]   plugin 'ROS2': loading...
error: library ( /home/harryw/Software/CoppeliaSim/libsimExtROS2.so ) load: "Cannot load library /home/harryw/Software/CoppeliaSim/libsimExtROS2.so: (libstd_srvs__rosidl_typesupport_cpp.so: cannot open shared object file: No such file or directory)"
[CoppeliaSim:error]   plugin 'ROS2': load failed (could not load). The plugin probably couldn't load dependency libraries. For additional infos, modify the script 'libLoadErrorCheck.sh', run it and inspect the output.

Running ./libLoadErrorCheck.sh gives

linux-vdso.so.1 (0x00007ffc0599d000)
libboost_regex.so.1.74.0 => /home/harryw/Software/CoppeliaSim/libboost_regex.so.1.74.0 (0x00007f7af8381000)
libstd_srvs__rosidl_typesupport_cpp.so => /opt/ros/humble/lib/libstd_srvs__rosidl_typesupport_cpp.so (0x00007f7af837b000)
libexample_interfaces__rosidl_typesupport_cpp.so => /opt/ros/humble/lib/libexample_interfaces__rosidl_typesupport_cpp.so (0x00007f7af836b000)
libimage_transport.so => /opt/ros/humble/lib/x86_64-linux-gnu/libimage_transport.so (0x00007f7af8294000)
libtf2_ros.so => /opt/ros/humble/lib/libtf2_ros.so (0x00007f7af81fb000)
libtf2_msgs__rosidl_typesupport_cpp.so => /opt/ros/humble/lib/libtf2_msgs__rosidl_typesupport_cpp.so (0x00007f7af81f1000)
librclcpp_action.so => /opt/ros/humble/lib/librclcpp_action.so (0x00007f7af81d0000)
librcl_action.so => /opt/ros/humble/lib/librcl_action.so (0x00007f7af81bd000)
libsensor_msgs__rosidl_typesupport_cpp.so => /opt/ros/humble/lib/libsensor_msgs__rosidl_typesupport_cpp.so (0x00007f7af81b2000)
libgeometry_msgs__rosidl_typesupport_cpp.so => /opt/ros/humble/lib/libgeometry_msgs__rosidl_typesupport_cpp.so (0x00007f7af81a7000)
libstd_msgs__rosidl_typesupport_cpp.so => /opt/ros/humble/lib/libstd_msgs__rosidl_typesupport_cpp.so (0x00007f7af819c000)
librclcpp.so => /opt/ros/humble/lib/librclcpp.so (0x00007f7af7fc2000)
liblibstatistics_collector.so => /opt/ros/humble/lib/liblibstatistics_collector.so (0x00007f7af7fbb000)
librcl.so => /opt/ros/humble/lib/librcl.so (0x00007f7af7f7d000)
librmw.so => /opt/ros/humble/lib/librmw.so (0x00007f7af7f71000)
libstatistics_msgs__rosidl_typesupport_cpp.so => /opt/ros/humble/lib/libstatistics_msgs__rosidl_typesupport_cpp.so (0x00007f7af7f6c000)
libbuiltin_interfaces__rosidl_typesupport_cpp.so => /opt/ros/humble/lib/libbuiltin_interfaces__rosidl_typesupport_cpp.so (0x00007f7af7f67000)
librcutils.so => /opt/ros/humble/lib/librcutils.so (0x00007f7af7f4d000)
libtracetools.so => /opt/ros/humble/lib/libtracetools.so (0x00007f7af7f48000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f7af7cfc000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f7af7cdc000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7af7ab4000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7af8e9e000)
libicui18n.so.70 => /home/harryw/Software/CoppeliaSim/libicui18n.so.70 (0x00007f7af76ff000)
libicuuc.so.70 => /home/harryw/Software/CoppeliaSim/libicuuc.so.70 (0x00007f7af74d7000)
librosidl_typesupport_cpp.so => /opt/ros/humble/lib/librosidl_typesupport_cpp.so (0x00007f7af74d1000)
libaction_msgs__rosidl_typesupport_cpp.so => /opt/ros/humble/lib/libaction_msgs__rosidl_typesupport_cpp.so (0x00007f7af74cb000)
libmessage_filters.so => /opt/ros/humble/lib/libmessage_filters.so (0x00007f7af74c6000)
libament_index_cpp.so => /opt/ros/humble/lib/libament_index_cpp.so (0x00007f7af74bb000)
libclass_loader.so => /opt/ros/humble/lib/libclass_loader.so (0x00007f7af74a8000)
librcpputils.so => /opt/ros/humble/lib/librcpputils.so (0x00007f7af7498000)
libconsole_bridge.so.1.0 => /lib/x86_64-linux-gnu/libconsole_bridge.so.1.0 (0x00007f7af7492000)
libtinyxml2.so.9 => /lib/x86_64-linux-gnu/libtinyxml2.so.9 (0x00007f7af747a000)
libtf2.so => /opt/ros/humble/lib/libtf2.so (0x00007f7af745b000)
librcl_interfaces__rosidl_typesupport_cpp.so => /opt/ros/humble/lib/librcl_interfaces__rosidl_typesupport_cpp.so (0x00007f7af7450000)
librcl_yaml_param_parser.so => /opt/ros/humble/lib/librcl_yaml_param_parser.so (0x00007f7af7442000)
librosgraph_msgs__rosidl_typesupport_cpp.so => /opt/ros/humble/lib/librosgraph_msgs__rosidl_typesupport_cpp.so (0x00007f7af743d000)
librmw_implementation.so => /opt/ros/humble/lib/librmw_implementation.so (0x00007f7af7430000)
librcl_logging_interface.so => /opt/ros/humble/lib/librcl_logging_interface.so (0x00007f7af742b000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7af7344000)
librcl_logging_spdlog.so => /opt/ros/humble/lib/librcl_logging_spdlog.so (0x00007f7af733b000)
librcl_interfaces__rosidl_typesupport_c.so => /opt/ros/humble/lib/librcl_interfaces__rosidl_typesupport_c.so (0x00007f7af7332000)
librcl_interfaces__rosidl_generator_c.so => /opt/ros/humble/lib/librcl_interfaces__rosidl_generator_c.so (0x00007f7af7316000)
librosidl_runtime_c.so => /opt/ros/humble/lib/librosidl_runtime_c.so (0x00007f7af730b000)
libicudata.so.70 => /home/harryw/Software/CoppeliaSim/libicudata.so.70 (0x00007f7af56ec000)
libyaml.so => /opt/ros/humble/lib/libyaml.so (0x00007f7af56c8000)
libspdlog.so.1 => /lib/x86_64-linux-gnu/libspdlog.so.1 (0x00007f7af564d000)
librosidl_typesupport_c.so => /opt/ros/humble/lib/librosidl_typesupport_c.so (0x00007f7af5647000)
libbuiltin_interfaces__rosidl_generator_c.so => /opt/ros/humble/lib/libbuiltin_interfaces__rosidl_generator_c.so (0x00007f7af5642000)
libfmt.so.8 => /lib/x86_64-linux-gnu/libfmt.so.8 (0x00007f7af5621000)

Asked by HWatchorn on 2022-11-06 09:39:24 UTC

Comments

It seems you don't have CoppeliaSim installed. Please go to their download page to get the appropriate version.

Asked by ravijoshi on 2022-11-08 01:19:47 UTC

Answers