-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: gazebo_ros/node.hpp: No such file or directory #66
Comments
Hi, which version of ROS2? Which branch of tello_ros? |
ROS2 foxy, and /tello_ws/src/tello_ros/tello_gazebo |
Try |
Hello again sir, I have successfully compiled the workspace, thank you. But i can't use ros2 launch: ~$ ros2 launch tello_gazebo simple_launch.py |
It seems that your ROS2 Foxy install is somehow incomplete. The typical way to install Foxy is You may be able to fix this by running If you are still running into problems you might benefit from uninstalling Foxy and starting over. If you're new to ROS2 you may enjoy the tutorials: https://docs.ros.org/en/foxy/Tutorials.html |
Thank you, programs are running without any problem after these commands !! I just have few questions.
|
Hello sir, I'm having this error when i compile with colcon build, i can't solve the problem. Should I have to modify my cmake ?
cmake in Tello_gazebo:
cmake_minimum_required(VERSION 3.5)
project(tello_gazebo)
#=============
Setup
#=============
Default to C99
if (NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
endif ()
Default to C++14
if (NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif ()
Emulate colcon
if ($ENV{CLION_IDE})
message("Running inside CLion")
set(tello_msgs_DIR "${PROJECT_SOURCE_DIR}/../../../install/tello_msgs/share/tello_msgs/cmake")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DRUN_INSIDE_CLION")
endif ()
Find packages
find_package(ament_cmake REQUIRED)
find_package(gazebo REQUIRED) # Note uppercase variables in /usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake
find_package(gazebo_dev REQUIRED)
find_package(gazebo_ros REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(rclcpp REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(std_msgs REQUIRED)
find_package(tello_msgs REQUIRED)
Local includes
include_directories(
include
${gazebo_ros_INCLUDE_DIRS}
${geometry_msgs_INCLUDE_DIRS}
${std_msgs_INCLUDE_DIRS}
${tello_msgs_INCLUDE_DIRS}
)
#=============
Tello Gazebo plugin
#=============
add_library(
TelloPlugin SHARED
src/tello_plugin.cpp
)
ament_target_dependencies(
TelloPlugin
gazebo_dev
gazebo_ros
geometry_msgs
rclcpp
std_msgs
tello_msgs
)
#=============
Install
#=============
Install targets
install(
TARGETS TelloPlugin
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)
Install world and launch files
install(
DIRECTORY models worlds launch
DESTINATION share/${PROJECT_NAME}
)
Install Python scripts
install(
PROGRAMS src/inject_entity.py
DESTINATION lib/${PROJECT_NAME}
)
#=============
Run ament macros
#=============
ament_package()
The text was updated successfully, but these errors were encountered: