Skip to content

Commit 46fffdc

Browse files
committed
Merge branch 'humble-devel' of https://github.com/CoreSenseEU/CoreSense4Home into humble-devel
2 parents ac1092d + cd7e4fd commit 46fffdc

61 files changed

Lines changed: 481 additions & 192 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.docker/Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RUN mkdir -p /robocup/src/
2323
WORKDIR /robocup
2424

2525
ADD https://raw.githubusercontent.com/mgonzs13/llama_ros/refs/heads/main/requirements.txt /robocup/requirements1.txt
26-
ADD https://raw.githubusercontent.com/jmguerreroh/yolo_ros/refs/heads/main/requirements.txt /robocup/requirements2.txt
26+
ADD https://raw.githubusercontent.com/juandpenan/yolov8_ros/refs/heads/irenes/requirements.txt /robocup/requirements2.txt
2727
ADD https://raw.githubusercontent.com/mgonzs13/tts_ros/refs/heads/main/requirements.txt /robocup/requirements3.txt
2828

2929
# Install external dependencies.
@@ -33,8 +33,7 @@ RUN pip install -r requirements3.txt
3333

3434
WORKDIR /robocup/src
3535
RUN git clone https://github.com/CoreSenseEU/CoreSense4Home.git -b humble-devel
36-
RUN vcs import --recursive < ./CoreSense4Home/robocup_bringup/thirdparty.repos
37-
36+
RUN vcs import --retry 5 --workers 2 --debug --recursive < ./CoreSense4Home/robocup_bringup/thirdparty.repos
3837

3938
WORKDIR /robocup
4039
RUN rosdep install --from-paths src --ignore-src -r -y
@@ -63,6 +62,12 @@ RUN cmake ..
6362
RUN make -j
6463
RUN make install
6564

65+
# Onnix runtime
66+
RUN wget https://robotics.upo.es/~famozur/onnx/onnxruntime-gpu_1.16.3_amd64.deb \
67+
&& apt-get update \
68+
&& apt-get install -y ./onnxruntime-gpu_1.16.3_amd64.deb \
69+
&& rm onnxruntime-gpu_1.16.3_amd64.deb
70+
6671
# Colcon the ws
6772
WORKDIR /robocup
6873
FROM robocup2024 AS builder

bt_nodes/bt_test/src/store_guest_info_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
int main(int argc, char * argv[])
1010
{
1111
rclcpp::init(argc, argv);
12-
auto node = std::make_shared<rclcpp_cascade_lifecycle::CascadeLifecycleNode>("store_guest_info_test_node");
12+
auto node =
13+
std::make_shared<rclcpp_cascade_lifecycle::CascadeLifecycleNode>("store_guest_info_test_node");
1314
BT::BehaviorTreeFactory factory;
1415
BT::SharedLibrary loader;
1516

bt_nodes/configuration/include/configuration/ActivationControl.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ class ActivationControl : public BT::ActionNodeBase
3737

3838
static BT::PortsList providedPorts()
3939
{
40-
return BT::PortsList({
41-
BT::InputPort<bool>("deactivate", "If true, remove activation, otherwise add"),
42-
BT::InputPort<std::string>("node_name", "Name of the node to (de)activate")
43-
});
40+
return BT::PortsList(
41+
{
42+
BT::InputPort<bool>("deactivate", "If true, remove activation, otherwise add"),
43+
BT::InputPort<std::string>("node_name", "Name of the node to (de)activate")
44+
});
4445
}
4546

4647
private:

bt_nodes/configuration/include/configuration/get_model_path.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ class GetModelPath : public BT::SyncActionNode
2121

2222
static BT::PortsList providedPorts()
2323
{
24-
return BT::PortsList({
25-
BT::InputPort<std::string>("model"),
26-
BT::OutputPort<std::string>("model_path")
27-
});
24+
return BT::PortsList(
25+
{
26+
BT::InputPort<std::string>("model"),
27+
BT::OutputPort<std::string>("model_path")
28+
});
2829
}
2930
};
3031

bt_nodes/configuration/src/configuration/ActivationControl.cpp

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
namespace configuration
1818
{
1919

20-
ActivationControl::ActivationControl(const std::string & xml_tag_name, const BT::NodeConfiguration & conf)
20+
ActivationControl::ActivationControl(
21+
const std::string & xml_tag_name,
22+
const BT::NodeConfiguration & conf)
2123
: BT::ActionNodeBase(xml_tag_name, conf)
2224
{
2325
config().blackboard->get("node", node_);
@@ -29,7 +31,9 @@ BT::NodeStatus ActivationControl::tick()
2931

3032
// Read inputs
3133
if (!getInput("deactivate", deactivate_)) {
32-
RCLCPP_WARN(node_->get_logger(), "ActivationControl: missing 'deactivate' input, defaulting to false");
34+
RCLCPP_WARN(
35+
node_->get_logger(),
36+
"ActivationControl: missing 'deactivate' input, defaulting to false");
3337
deactivate_ = false;
3438
}
3539
if (!getInput("node_name", node_name_)) {
@@ -38,10 +42,14 @@ BT::NodeStatus ActivationControl::tick()
3842
}
3943

4044
if (deactivate_) {
41-
RCLCPP_INFO(node_->get_logger(), "ActivationControl: removing activation for %s", node_name_.c_str());
45+
RCLCPP_INFO(
46+
node_->get_logger(), "ActivationControl: removing activation for %s",
47+
node_name_.c_str());
4248
node_->remove_activation(node_name_);
4349
} else {
44-
RCLCPP_INFO(node_->get_logger(), "ActivationControl: adding activation for %s", node_name_.c_str());
50+
RCLCPP_INFO(
51+
node_->get_logger(), "ActivationControl: adding activation for %s",
52+
node_name_.c_str());
4553
node_->add_activation(node_name_);
4654
}
4755

bt_nodes/configuration/src/configuration/get_model_path.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,15 @@ BT::NodeStatus GetModelPath::tick()
4747
RCLCPP_INFO(rclcpp::get_logger("GetModelPath"), "Found model at: %s", model_path.c_str());
4848
return BT::NodeStatus::SUCCESS;
4949
} else {
50-
RCLCPP_ERROR(rclcpp::get_logger("GetModelPath"), "Model not found at: %s", model_path.c_str());
50+
RCLCPP_ERROR(
51+
rclcpp::get_logger("GetModelPath"), "Model not found at: %s",
52+
model_path.c_str());
5153
return BT::NodeStatus::FAILURE;
5254
}
5355
} catch (const std::exception & e) {
54-
RCLCPP_ERROR(rclcpp::get_logger("GetModelPath"), "Failed to get package share directory: %s", e.what());
56+
RCLCPP_ERROR(
57+
rclcpp::get_logger("GetModelPath"), "Failed to get package share directory: %s",
58+
e.what());
5559
return BT::NodeStatus::FAILURE;
5660
}
5761
}

bt_nodes/configuration/src/configuration/get_perception_model.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ void GetPerceptionModel::on_result()
6161
BT_REGISTER_NODES(factory)
6262
{
6363
BT::NodeBuilder builder = [](const std::string & name, const BT::NodeConfiguration & config) {
64-
return std::make_unique<configuration::GetPerceptionModel>(
65-
name, "/yolo/yolo_node/get_parameters", config);
66-
};
64+
return std::make_unique<configuration::GetPerceptionModel>(
65+
name, "/yolo/yolo_node/get_parameters", config);
66+
};
6767

6868
factory.registerBuilder<configuration::GetPerceptionModel>("GetPerceptionModel", builder);
6969
}

bt_nodes/configuration/src/configuration/init_receptionist.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ BT::NodeStatus InitReceptionist::tick()
5252

5353
if (
5454
node_->has_parameter("cam_frame") && node_->has_parameter("manipulation_frame") &&
55-
node_->has_parameter("host_name") && node_->has_parameter("host_drink")
56-
&& node_->has_parameter("waypoints_names"))
55+
node_->has_parameter("host_name") && node_->has_parameter("host_drink") &&
56+
node_->has_parameter("waypoints_names"))
5757
// node_->has_parameter("party_wp") && node_->has_parameter("entrance_wp"))
5858
{
5959
node_->get_parameter("cam_frame", cam_frame_);
@@ -76,13 +76,13 @@ BT::NodeStatus InitReceptionist::tick()
7676
geometry_msgs::msg::TransformStamped transform_msg;
7777
tf2::Quaternion q;
7878

79-
if (wp.find("entrance")!=std::string::npos) {
79+
if (wp.find("entrance") != std::string::npos) {
8080
setOutput("entrance_wp", wp);
8181
RCLCPP_INFO(
8282
node_->get_logger(), "Entrance waypoint set to frame: [%s]", wp.c_str());
83-
} else if (wp.find("party")!=std::string::npos) {
83+
} else if (wp.find("party") != std::string::npos) {
8484
setOutput("party_wp", wp);
85-
} else if (wp.find("follow_ready")!=std::string::npos) {
85+
} else if (wp.find("follow_ready") != std::string::npos) {
8686
setOutput("follow_ready_wp", wp);
8787
RCLCPP_INFO(
8888
node_->get_logger(), "Follow ready waypoint set to frame: [%s]", wp.c_str());

bt_nodes/configuration/src/configuration/remove_string_prefix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ BT::NodeStatus RemoveStringPrefix::tick()
3030
if (string_to_remove_.empty() || prefix_.empty()) {
3131
return BT::NodeStatus::FAILURE;
3232
}
33-
33+
3434
size_t pos = string_to_remove_.find(prefix_);
3535
if (pos != std::string::npos) {
3636
result_ = string_to_remove_.substr(pos + prefix_.length());

bt_nodes/configuration/src/configuration/set_perception_model.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ void SetPerceptionModel::on_result()
9292
BT_REGISTER_NODES(factory)
9393
{
9494
BT::NodeBuilder builder = [](const std::string & name, const BT::NodeConfiguration & config) {
95-
return std::make_unique<configuration::SetPerceptionModel>(
96-
name, "/change_model", config);
97-
};
95+
return std::make_unique<configuration::SetPerceptionModel>(
96+
name, "/change_model", config);
97+
};
9898

9999
factory.registerBuilder<configuration::SetPerceptionModel>("SetPerceptionModel", builder);
100100
}

0 commit comments

Comments
 (0)