Skip to content

Commit

Permalink
fixed include statements and removed non-existent tests from cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
alekskl01 committed Nov 7, 2023
1 parent 70f7ee8 commit aedf67d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 27 deletions.
19 changes: 0 additions & 19 deletions motion/thruster_allocator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,6 @@ install(TARGETS
${PROJECT_NAME}_node
DESTINATION lib/${PROJECT_NAME})

if(BUILD_TESTING)
find_package(ament_cmake_gtest REQUIRED)
ament_add_gtest(${PROJECT_NAME}_test
test/main.cpp
test/allocator_test.cpp
)


target_include_directories(${PROJECT_NAME}_test PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)
ament_target_dependencies(${PROJECT_NAME}_test
rclcpp
geometry_msgs
vortex_msgs
)
endif()

# Install launch files.
install(DIRECTORY
launch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

#include <eigen3/Eigen/Eigen>
#include <rclcpp/rclcpp.hpp>
#include <thruster_allocator/allocator_utils.hpp>
#include <thruster_allocator/pseudoinverse_allocator.hpp>
#include "thruster_allocator/allocator_utils.hpp"
#include "thruster_allocator/pseudoinverse_allocator.hpp"

#include <geometry_msgs/msg/wrench.hpp>
#include <vortex_msgs/msg/thruster_forces.hpp>
Expand Down
6 changes: 3 additions & 3 deletions motion/thruster_allocator/src/allocator_ros.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <thruster_allocator/allocator_ros.hpp>
#include <thruster_allocator/allocator_utils.hpp>
#include <thruster_allocator/pseudoinverse_allocator.hpp>
#include "thruster_allocator/allocator_ros.hpp"
#include "thruster_allocator/allocator_utils.hpp"
#include "thruster_allocator/pseudoinverse_allocator.hpp"
#include <vortex_msgs/msg/thruster_forces.hpp>

#include <chrono>
Expand Down
2 changes: 1 addition & 1 deletion motion/thruster_allocator/src/pseudoinverse_allocator.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <thruster_allocator/pseudoinverse_allocator.hpp>
#include "thruster_allocator/pseudoinverse_allocator.hpp"

PseudoinverseAllocator::PseudoinverseAllocator(const Eigen::MatrixXd &T_pinv)
: T_pinv(T_pinv) {}
Expand Down
4 changes: 2 additions & 2 deletions motion/thruster_allocator/src/thruster_allocator_node.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <thruster_allocator/allocator_ros.hpp>
#include <thruster_allocator/allocator_utils.hpp>
#include "thruster_allocator/allocator_ros.hpp"
#include "thruster_allocator/allocator_utils.hpp"

int main(int argc, char **argv) {
rclcpp::init(argc, argv);
Expand Down

0 comments on commit aedf67d

Please sign in to comment.