Skip to content

Commit

Permalink
added config directory to install in CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
alekskl01 committed Oct 14, 2023
1 parent 9ed9d19 commit c389e4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions motion/thruster_interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ include_directories(include)

add_executable(${PROJECT_NAME}_node
src/thruster_interface.cpp
src/thruster_interface_ros.cpp
src/thruster_interface_node.cpp
)

ament_target_dependencies(${PROJECT_NAME}_node
Expand All @@ -32,12 +32,13 @@ ament_target_dependencies(${PROJECT_NAME}_node

install(
DIRECTORY include/
DESTINATION include
DESTINATION include
)

# Install launch files.
install(DIRECTORY
launch
config
DESTINATION share/${PROJECT_NAME}
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ using std::placeholders::_1;
class ThrusterInterfaceROS : public rclcpp::Node {
private:
std::string mapping_file =
ament_index_cpp::get_package_share_directory("thruster_interface") +
ament_index_cpp::get_package_share_directory("thruster_interface") +
"/config/ThrustMe_P1000_force_mapping.csv";
ThrusterInterface thrusterInterface{mapping_file};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <thruster_interface/thruster_interface_ros.hpp>
#include <thruster_interface/thruster_interface_node.hpp>

void ThrusterInterfaceROS::thrust_callback(
const vortex_msgs::msg::ThrusterForces::SharedPtr msg) {
Expand Down

0 comments on commit c389e4e

Please sign in to comment.