Skip to content

Commit

Permalink
WIP #3: Added custom_msgs package as dependency for motor_control
Browse files Browse the repository at this point in the history
Now we can import our custom message types that we defined for transmitting the desired motor speeds
  • Loading branch information
Jacob Gloudemans committed Jan 15, 2019
1 parent 9962e40 commit f094d3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions motor_control/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ find_package(catkin REQUIRED COMPONENTS
rospy
std_msgs
geometry_msgs
custom_msgs
)

find_package (Threads REQUIRED)
Expand Down
1 change: 1 addition & 0 deletions motor_control/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<depend>std_msgs></depend>
<depend>geometry_msgs</depend>
<depend>dynamic_reconfigure</depend>
<depend>custom_msgs</depend>

<!-- The export tag contains other, unspecified, tags -->
<export>
Expand Down
2 changes: 1 addition & 1 deletion motor_control/src/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
#include <chrono>
#include <thread>
#include <unistd.h>
#include "Platform-linux-socket-can.h"

// Include ROS libraries
#include "ros/ros.h"
#include <custom_msgs/DriveMotorSpeeds.h>

using namespace ctre::phoenix;
using namespace ctre::phoenix::platform;
Expand Down

0 comments on commit f094d3c

Please sign in to comment.