Comments (2)
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.
-
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/ . -
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.
- 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
- 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.
Closing as ROS2 Eloquent is EOL
from simros2.
Related Issues (17)
- I have a Compile ERROR HOT 1
- calling simROS2.advertiseService causes crashing with "undefined symbol:_ZN22rosidl_typesupport_cpp31get_service_type_support_handleIN8std_srvs3srv5EmptyEEEPK29rosidl_service_type_support_tv" HOT 2
- Compiling for/with ROS2 Crystal HOT 1
- libPlugin/README.md no longer exists HOT 1
- Plugin fails to load HOT 4
- error: This project has asked CMake to find a package configuration file provided by "Python3", but CMake did not find one HOT 3
- Unknown CMake command "coppeliasim_add_plugin". HOT 9
- simExtROS2 on ROS2 Galactic HOT 8
- Interface for sensor_msgs/msg/CameraInfo needs also sensor_msgs/msg/RegionOfInterest HOT 1
- "Colcon Build --symlink-install" Broke on latest commit HOT 1
- std_msgs/msg/Float64MultiArray problem HOT 1
- Simulator stops sending messages
- error: cannot initialize a parameter of type 'simBool *' (aka 'unsigned char *') with an lvalue of type 'bool *' HOT 1
- Reference to libPlugin in the readme HOT 1
- colcon build --symlink-install take a lot of time HOT 1
- CoppeliaSim Crashes when requiring simROS2 in scripts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simros2.