GithubHelp home page GithubHelp logo

Comments (2)

METEORITENMAX avatar METEORITENMAX commented on September 26, 2024 1

Hello Tahir,
i also wanted to use the simExtROS2Interface with eloquent and had some issues.
It would be helpful to know which system you are using and which error you get with:

VERBOSE=1 MAKEFLAGS=-j1 colcon build --symlink-install --event-handlers console_direct+ --parallel-workers 1

Here is my solution:

I am using Ubuntu 18.04.

  1. The first problem is the CMake version installed by apt on 18.04 is 3.10.2 but you need 3.16 or higher.
    Kitware offers a ppa for apt: https://blog.kitware.com/ubuntu-cmake-repository-now-available/ .

  2. Next error:

   CMake Error at CMakeLists.txt:144 (ament_export_targets):
   Unknown CMake command "ament_export_targets".

Navigate to the CMakeLists.txt line 144 and change ament_export_targets to ament_export_interfaces.

  1. Then
coppelia_ros2_ws/src/sim_ros2_interface/include/sim_ros2_interface/sim_ros2_interface.h:15:10: fatal error: image_transport/image_transport.hpp: No such file or directory
 #include <image_transport/image_transport.hpp>

Open sim_ros2_interface.cpp and sim_ros2_interface.h and change all occurrences of #include <image_transport/image_transport.hpp> to #include <image_transport/image_transport.h>

If you try this you should get a similar output otherwise the package image_transport is missing.

$ locate image_transport.h 
/opt/ros/eloquent/include/image_transport/image_transport.h

  1. One more,
In file included from ~/coppelia_ros2_ws/src/sim_ros2_interface/src/sim_ros2_interface.cpp:479:0:
~/coppelia_ros2_ws/build/sim_ros2_interface/generated/actcli_cancelLastGoal.cpp: In member function ‘void Plugin::cancelLastGoal(cancelLastGoal_in*, cancelLastGoal_out*)’:
/home/max/coppelia_ros2_ws/build/sim_ros2_interface/generated/actcli_cancelLastGoal.cpp:6:86: error: ‘rclcpp::FutureReturnCode’ has not been declared
         if(rclcpp::spin_until_future_complete(node, cancel_result_future) != rclcpp::FutureReturnCode::SUCCESS)

Navigate to the templates folder and open actcli_cancelLastGoal.cpp.
In line 10 change rclcpp::FutureReturnCode::SUCCESS to rclcpp::executor::FutureReturnCode::SUCCESS

Then the colcon build finished, the ROS2Interface load succeeded when starting CoppeliaSim and the ros2InterfaceTopicPublisherAndSubscriber example works for me.

I hope this helps you.

from simros2.

fferri avatar fferri commented on September 26, 2024

Closing as ROS2 Eloquent is EOL

from simros2.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.