Skip to content

Commit 863c835

Browse files
committed
Fixed after merge
Signed-off-by: Jakub Delicat <[email protected]>
1 parent 624d8ad commit 863c835

File tree

19 files changed

+405
-92
lines changed

19 files changed

+405
-92
lines changed

husarion_ugv_manager/CMakeLists.txt

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,13 @@ add_executable(safety_manager_node src/safety_manager_node_main.cpp
8585
ament_target_dependencies(
8686
safety_manager_node
8787
behaviortree_ros2
88-
panther_msgs
88+
geometry_msgs
8989
husarion_ugv_utils
90+
panther_msgs
9091
rclcpp
9192
sensor_msgs
92-
std_msgs)
93+
std_msgs
94+
tf2_geometry_msgs)
9395

9496
generate_parameter_library(safety_manager_parameters
9597
config/safety_manager_parameters.yaml)
@@ -101,11 +103,13 @@ add_executable(lights_manager_node src/lights_manager_node_main.cpp
101103
ament_target_dependencies(
102104
lights_manager_node
103105
behaviortree_ros2
104-
panther_msgs
106+
geometry_msgs
105107
husarion_ugv_utils
108+
panther_msgs
106109
rclcpp
107110
sensor_msgs
108-
std_msgs)
111+
std_msgs
112+
tf2_geometry_msgs)
109113

110114
generate_parameter_library(lights_manager_parameters
111115
config/lights_manager_parameters.yaml)
@@ -222,7 +226,7 @@ if(BUILD_TESTING)
222226
$<INSTALL_INTERFACE:include>)
223227
ament_target_dependencies(
224228
${PROJECT_NAME}_test_behavior_tree_utils behaviortree_cpp behaviortree_ros2
225-
husarion_ugv_utils)
229+
husarion_ugv_utils geometry_msgs tf2_geometry_msgs)
226230

227231
ament_add_gtest(${PROJECT_NAME}_test_behavior_tree_manager
228232
test/test_behavior_tree_manager.cpp)
@@ -243,11 +247,13 @@ if(BUILD_TESTING)
243247
${PROJECT_NAME}_test_lights_manager_node
244248
behaviortree_cpp
245249
behaviortree_ros2
246-
panther_msgs
250+
geometry_msgs
247251
husarion_ugv_utils
252+
panther_msgs
248253
rclcpp
249254
sensor_msgs
250-
std_msgs)
255+
std_msgs
256+
tf2_geometry_msgs)
251257
target_link_libraries(${PROJECT_NAME}_test_lights_manager_node
252258
lights_manager_parameters)
253259

@@ -262,11 +268,13 @@ if(BUILD_TESTING)
262268
${PROJECT_NAME}_test_lights_behavior_tree
263269
behaviortree_cpp
264270
behaviortree_ros2
265-
panther_msgs
271+
geometry_msgs
266272
husarion_ugv_utils
273+
panther_msgs
267274
rclcpp
268275
sensor_msgs
269-
std_msgs)
276+
std_msgs
277+
tf2_geometry_msgs)
270278
target_link_libraries(${PROJECT_NAME}_test_lights_behavior_tree
271279
lights_manager_parameters)
272280

@@ -280,11 +288,13 @@ if(BUILD_TESTING)
280288
${PROJECT_NAME}_test_safety_manager_node
281289
behaviortree_cpp
282290
behaviortree_ros2
283-
panther_msgs
291+
geometry_msgs
284292
husarion_ugv_utils
293+
panther_msgs
285294
rclcpp
286295
sensor_msgs
287-
std_msgs)
296+
std_msgs
297+
tf2_geometry_msgs)
288298
target_link_libraries(${PROJECT_NAME}_test_safety_manager_node
289299
safety_manager_parameters)
290300

@@ -299,12 +309,14 @@ if(BUILD_TESTING)
299309
${PROJECT_NAME}_test_safety_behavior_tree
300310
behaviortree_cpp
301311
behaviortree_ros2
302-
panther_msgs
312+
geometry_msgs
303313
husarion_ugv_utils
314+
panther_msgs
304315
rclcpp
305316
sensor_msgs
306317
std_msgs
307-
std_srvs)
318+
std_srvs
319+
tf2_geometry_msgs)
308320
target_link_libraries(${PROJECT_NAME}_test_safety_behavior_tree
309321
safety_manager_parameters)
310322
endif()

husarion_ugv_manager/config/lights_manager_parameters.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ lights_manager:
4444
default_value: ""
4545
description: Path to a BehaviorTree project.
4646

47+
bt_server_port:
48+
type: int
49+
default_value: 5555
50+
description: Port number for the BehaviorTree server.
51+
validation: { gt<>: 0 }
52+
4753
plugin_libs:
4854
type: string_array
4955
default_value: []

husarion_ugv_manager/config/safety_manager.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
safety_manager:
33
ros__parameters:
44
timer_frequency: 10.0
5+
bt_server_port: 6666
56
fan_turn_off_timeout: 60.0
67
battery:
78
temp:

husarion_ugv_manager/config/safety_manager_parameters.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ safety_manager:
1212
default_value: ""
1313
description: Path to a BehaviorTree project.
1414

15+
bt_server_port:
16+
type: int
17+
default_value: 6666
18+
description: Port number for the BehaviorTree server.
19+
validation: { gt<>: 0 }
20+
1521
cpu:
1622
temp:
1723
fan_off:

husarion_ugv_manager/include/husarion_ugv_manager/plugins/action/dock_robot_node.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef PANTHER_MANAGER_PLUGINS_ACTION_DOCK_ROBOT_NODE_HPP_
16-
#define PANTHER_MANAGER_PLUGINS_ACTION_DOCK_ROBOT_NODE_HPP_
15+
#ifndef HUSARION_UGV_MANAGER_PLUGINS_ACTION_DOCK_ROBOT_NODE_HPP_
16+
#define HUSARION_UGV_MANAGER_PLUGINS_ACTION_DOCK_ROBOT_NODE_HPP_
1717

1818
#include <memory>
1919
#include <string>
@@ -24,7 +24,7 @@
2424
#include <geometry_msgs/msg/pose_stamped.hpp>
2525
#include <opennav_docking_msgs/action/dock_robot.hpp>
2626

27-
namespace panther_manager
27+
namespace husarion_ugv_manager
2828
{
2929

3030
class DockRobot : public BT::RosActionNode<opennav_docking_msgs::action::DockRobot>
@@ -76,6 +76,6 @@ class DockRobot : public BT::RosActionNode<opennav_docking_msgs::action::DockRob
7676
}
7777
};
7878

79-
} // namespace panther_manager
79+
} // namespace husarion_ugv_manager
8080

81-
#endif // PANTHER_MANAGER_PLUGINS_ACTION_DOCK_ROBOT_NODE_HPP_
81+
#endif // HUSARION_UGV_MANAGER_PLUGINS_ACTION_DOCK_ROBOT_NODE_HPP_

husarion_ugv_manager/include/husarion_ugv_manager/plugins/action/undock_robot_node.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef PANTHER_MANAGER_PLUGINS_ACTION_UNDOCK_ROBOT_NODE_HPP_
16-
#define PANTHER_MANAGER_PLUGINS_ACTION_UNDOCK_ROBOT_NODE_HPP_
15+
#ifndef HUSARION_UGV_MANAGER_PLUGINS_ACTION_UNDOCK_ROBOT_NODE_HPP_
16+
#define HUSARION_UGV_MANAGER_PLUGINS_ACTION_UNDOCK_ROBOT_NODE_HPP_
1717

1818
#include <memory>
1919
#include <string>
@@ -24,7 +24,7 @@
2424
#include <geometry_msgs/msg/pose_stamped.hpp>
2525
#include <opennav_docking_msgs/action/undock_robot.hpp>
2626

27-
namespace panther_manager
27+
namespace husarion_ugv_manager
2828
{
2929

3030
class UndockRobot : public BT::RosActionNode<opennav_docking_msgs::action::UndockRobot>
@@ -61,6 +61,6 @@ class UndockRobot : public BT::RosActionNode<opennav_docking_msgs::action::Undoc
6161
}
6262
};
6363

64-
} // namespace panther_manager
64+
} // namespace husarion_ugv_manager
6565

66-
#endif // PANTHER_MANAGER_PLUGINS_ACTION_UNDOCK_ROBOT_NODE_HPP_
66+
#endif // HUSARION_UGV_MANAGER_PLUGINS_ACTION_UNDOCK_ROBOT_NODE_HPP_

husarion_ugv_manager/include/husarion_ugv_manager/plugins/condition/check_bool_msg.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424

2525
#include <std_msgs/msg/bool.hpp>
2626

27-
#include "panther_manager/behavior_tree_utils.hpp"
27+
#include "husarion_ugv_manager/behavior_tree_utils.hpp"
2828

29-
namespace panther_manager
29+
namespace husarion_ugv_manager
3030
{
3131

3232
// FIXME: There is no possibility to set QoS profile. Add it in the future to subscribe e_stop.
@@ -50,6 +50,6 @@ class CheckBoolMsg : public BT::RosTopicSubNode<std_msgs::msg::Bool>
5050
}
5151
};
5252

53-
} // namespace panther_manager
53+
} // namespace husarion_ugv_manager
5454

5555
#endif // PANTHER_MANAGER_PLUGINS_CONDITION_CHECK_BOOL_MSG_HPP_

husarion_ugv_manager/include/husarion_ugv_manager/plugins/condition/check_joy_msg.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef PANTHER_MANAGER_PLUGINS_CONDITION_CHECK_JOY_MSG_HPP_
16-
#define PANTHER_MANAGER_PLUGINS_CONDITION_CHECK_JOY_MSG_HPP_
15+
#ifndef HUSARION_UGV_MANAGER_PLUGINS_CONDITION_CHECK_JOY_MSG_HPP_
16+
#define HUSARION_UGV_MANAGER_PLUGINS_CONDITION_CHECK_JOY_MSG_HPP_
1717

1818
#include <memory>
1919
#include <mutex>
@@ -24,9 +24,9 @@
2424

2525
#include <sensor_msgs/msg/joy.hpp>
2626

27-
#include "panther_manager/behavior_tree_utils.hpp"
27+
#include "husarion_ugv_manager/behavior_tree_utils.hpp"
2828

29-
namespace panther_manager
29+
namespace husarion_ugv_manager
3030
{
3131

3232
class CheckJoyMsg : public BT::RosTopicSubNode<sensor_msgs::msg::Joy>
@@ -63,6 +63,6 @@ class CheckJoyMsg : public BT::RosTopicSubNode<sensor_msgs::msg::Joy>
6363
bool checkTimeout(const JoyMsg::SharedPtr & last_msg);
6464
};
6565

66-
} // namespace panther_manager
66+
} // namespace husarion_ugv_manager
6767

68-
#endif // PANTHER_MANAGER_PLUGINS_CONDITION_CHECK_JOY_MSG_HPP_
68+
#endif // HUSARION_UGV_MANAGER_PLUGINS_CONDITION_CHECK_JOY_MSG_HPP_

husarion_ugv_manager/src/plugins/action/dock_robot_node.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "panther_manager/plugins/action/dock_robot_node.hpp"
16-
#include "panther_manager/behavior_tree_utils.hpp"
15+
#include "husarion_ugv_manager/plugins/action/dock_robot_node.hpp"
16+
#include "husarion_ugv_manager/behavior_tree_utils.hpp"
1717

18-
namespace panther_manager
18+
namespace husarion_ugv_manager
1919
{
2020

2121
bool DockRobot::setGoal(Goal & goal)
@@ -83,7 +83,7 @@ void DockRobot::onHalt()
8383
RCLCPP_INFO_STREAM(this->logger(), GetLoggerPrefix(name()) << ": onHalt");
8484
}
8585

86-
} // namespace panther_manager
86+
} // namespace husarion_ugv_manager
8787

8888
#include "behaviortree_ros2/plugins.hpp"
89-
CreateRosNodePlugin(panther_manager::DockRobot, "DockRobot");
89+
CreateRosNodePlugin(husarion_ugv_manager::DockRobot, "DockRobot");

husarion_ugv_manager/src/plugins/action/undock_robot_node.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "panther_manager/plugins/action/undock_robot_node.hpp"
16-
#include "panther_manager/behavior_tree_utils.hpp"
15+
#include "husarion_ugv_manager/plugins/action/undock_robot_node.hpp"
16+
#include "husarion_ugv_manager/behavior_tree_utils.hpp"
1717

18-
namespace panther_manager
18+
namespace husarion_ugv_manager
1919
{
2020

2121
bool UndockRobot::setGoal(Goal & goal)
@@ -60,7 +60,7 @@ void UndockRobot::onHalt()
6060
RCLCPP_INFO_STREAM(this->logger(), GetLoggerPrefix(name()) << ": onHalt");
6161
}
6262

63-
} // namespace panther_manager
63+
} // namespace husarion_ugv_manager
6464

6565
#include "behaviortree_ros2/plugins.hpp"
66-
CreateRosNodePlugin(panther_manager::UndockRobot, "UndockRobot");
66+
CreateRosNodePlugin(husarion_ugv_manager::UndockRobot, "UndockRobot");

0 commit comments

Comments
 (0)