From f094d3c6391ddfb97078e2323ee172599b9f6351 Mon Sep 17 00:00:00 2001 From: Jacob Gloudemans Date: Mon, 14 Jan 2019 20:57:47 -0600 Subject: [PATCH] WIP #3: Added custom_msgs package as dependency for motor_control Now we can import our custom message types that we defined for transmitting the desired motor speeds --- motor_control/CMakeLists.txt | 1 + motor_control/package.xml | 1 + motor_control/src/example.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/motor_control/CMakeLists.txt b/motor_control/CMakeLists.txt index afd2b33..79d7cea 100644 --- a/motor_control/CMakeLists.txt +++ b/motor_control/CMakeLists.txt @@ -16,6 +16,7 @@ find_package(catkin REQUIRED COMPONENTS rospy std_msgs geometry_msgs + custom_msgs ) find_package (Threads REQUIRED) diff --git a/motor_control/package.xml b/motor_control/package.xml index cd7fe16..9d56e2b 100644 --- a/motor_control/package.xml +++ b/motor_control/package.xml @@ -24,6 +24,7 @@ std_msgs> geometry_msgs dynamic_reconfigure + custom_msgs diff --git a/motor_control/src/example.cpp b/motor_control/src/example.cpp index db6cc41..fd56949 100644 --- a/motor_control/src/example.cpp +++ b/motor_control/src/example.cpp @@ -9,10 +9,10 @@ #include #include #include -#include "Platform-linux-socket-can.h" // Include ROS libraries #include "ros/ros.h" +#include using namespace ctre::phoenix; using namespace ctre::phoenix::platform;