Skip to content

Commit c05c7b5

Browse files
authored
refactor to new utils ros packages (#648)
* refactor to new utils ros packages * added utils dep for velocity controller * fix typo
1 parent d72affd commit c05c7b5

21 files changed

Lines changed: 29 additions & 20 deletions

File tree

control/dp_adapt_backs_controller/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ endif()
1111

1212
find_package(ament_cmake REQUIRED)
1313
find_package(vortex_utils REQUIRED)
14+
find_package(vortex_utils_ros REQUIRED)
1415
find_package(rclcpp REQUIRED)
1516
find_package(rclcpp_components REQUIRED)
1617
find_package(nav_msgs REQUIRED)
@@ -41,6 +42,7 @@ ament_target_dependencies(${LIB_NAME} PUBLIC
4142
spdlog
4243
vortex_msgs
4344
vortex_utils
45+
vortex_utils_ros
4446
)
4547

4648
rclcpp_components_register_node(

control/dp_adapt_backs_controller/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<depend>tf2</depend>
1717
<depend>vortex_msgs</depend>
1818
<depend>vortex_utils</depend>
19+
<depend>vortex_utils_ros</depend>
1920

2021
<export>
2122
<build_type>ament_cmake</build_type>

control/dp_adapt_backs_controller/src/dp_adapt_backs_controller_ros.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <rclcpp_components/register_node_macro.hpp>
44
#include <string>
55
#include <vortex/utils/math.hpp>
6-
#include <vortex/utils/qos_profiles.hpp>
6+
#include <vortex/utils/ros/qos_profiles.hpp>
77
#include <vortex/utils/types.hpp>
88
#include "dp_adapt_backs_controller/dp_adapt_backs_controller_utils.hpp"
99
#include "dp_adapt_backs_controller/typedefs.hpp"

control/velocity_controller_lqr/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ find_package(rclpy REQUIRED)
66
find_package(nav_msgs REQUIRED)
77
find_package(geometry_msgs REQUIRED)
88
find_package(vortex_msgs REQUIRED)
9+
find_package(vortex_utils REQUIRED)
10+
find_package(vortex_utils_ros REQUIRED)
911

1012
install(DIRECTORY
1113
launch

control/velocity_controller_lqr/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<depend>nav_msgs</depend>
1515
<depend>vortex_msgs</depend>
1616
<depend>vortex_utils</depend>
17+
<depend>vortex_utils_ros</depend>
1718
<depend>python-control-pip</depend>
1819
<depend>std_msgs</depend>
1920

control/velocity_controller_lqr/scripts/velocity_controller_lqr_node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
)
1717
from vortex_msgs.msg import LOSGuidance
1818
from vortex_utils.python_utils import State
19-
from vortex_utils.qos_profiles import reliable_profile, sensor_data_profile
20-
from vortex_utils.ros_converter import pose_from_ros, twist_from_ros
19+
from vortex_utils_ros.qos_profiles import reliable_profile, sensor_data_profile
20+
from vortex_utils_ros.ros_converter import pose_from_ros, twist_from_ros
2121

2222

2323
class LinearQuadraticRegulator(Node):

guidance/los_guidance/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ find_package(ament_cmake REQUIRED)
1313
find_package(rclcpp REQUIRED)
1414
find_package(rclcpp_action REQUIRED)
1515
find_package(vortex_msgs REQUIRED)
16-
find_package(vortex_utils REQUIRED)
16+
find_package(vortex_utils_ros REQUIRED)
1717
find_package(geometry_msgs REQUIRED)
1818
find_package(Eigen3 REQUIRED)
1919
find_package(spdlog REQUIRED)
@@ -32,7 +32,7 @@ ament_target_dependencies(${LIB_NAME}
3232
rclcpp_action
3333
geometry_msgs
3434
vortex_msgs
35-
vortex_utils
35+
vortex_utils_ros
3636
Eigen3
3737
spdlog
3838
fmt

guidance/los_guidance/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<depend>rclcpp_action</depend>
1414
<depend>geometry_msgs</depend>
1515
<depend>vortex_msgs</depend>
16-
<depend>vortex_utils</depend>
16+
<depend>vortex_utils_ros</depend>
1717
<depend>eigen</depend>
1818

1919
<export>

guidance/los_guidance/src/los_guidance_ros.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "los_guidance/los_guidance_ros.hpp"
22
#include <spdlog/spdlog.h>
3-
#include <vortex/utils/qos_profiles.hpp>
3+
#include <vortex/utils/ros/qos_profiles.hpp>
44

55
const auto start_message = R"(
66
_ ___ ____ ____ _ _

guidance/reference_filter_dp/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ find_package(rclcpp_action REQUIRED)
1515
find_package(rclcpp_components REQUIRED)
1616
find_package(vortex_msgs REQUIRED)
1717
find_package(vortex_utils REQUIRED)
18+
find_package(vortex_utils_ros REQUIRED)
1819
find_package(geometry_msgs REQUIRED)
1920
find_package(nav_msgs REQUIRED)
2021
find_package(Eigen3 REQUIRED)
@@ -38,6 +39,7 @@ ament_target_dependencies(${LIB_NAME} PUBLIC
3839
Eigen3
3940
vortex_msgs
4041
vortex_utils
42+
vortex_utils_ros
4143
spdlog
4244
fmt
4345
)

0 commit comments

Comments
 (0)