Unable to Include Ackermann Messages in ROS2 C++ Node
I am using ROS2 Dashing on Ubuntu 18.04 and am receiving the error
fatal error: ackermann_msgs/msg/AckermannDrive.hpp: No such file or directory
#include "ackermann_msgs/msg/AckermannDrive.hpp"
when trying to colcon build --symlink-install
a custom package with a rclcpp node. The headers files in the node are as follows
#include "rclcpp/rclcpp.hpp"
#include "sensor_msgs/msg/joy.hpp"
#include "ackermann_msgs/msg/AckermannDriveStamped.hpp"
All std_msgs, sensor_msgs, and geometry_msgs include fine and I have the lines find_package(ackermann_msgs REQUIRED)
and ament_target_dependencies(usb_hw_interface rclcpp ackermann_msgs sensor_msgs)
in my CMakeLists.txt and the line <depend>ackermann_msgs</depend>
in my package.xml. I have scoured the internet for similar problems and have looked over my code a multitude of times without luck. I can confirm that ackermann_msgs are installed in my /opt/ros/dashing/share
and that they appear when I run ros2 msg list
. Any help is greatly appreciated.