Skip to content

Commit 74e5bf3

Browse files
committed
Merge branch 'humble-devel' of https://github.com/CoreSenseEU/CoreSense4Home into humble-devel
2 parents 5472015 + c5bccb9 commit 74e5bf3

9 files changed

Lines changed: 56 additions & 25 deletions

File tree

bt_nodes/configuration/src/configuration/init_receptionist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ BT::NodeStatus InitReceptionist::tick()
6767
std::to_string(wp_names_.size()).c_str());
6868

6969
for (auto wp : wp_names_) {
70-
// node_->declare_parameter("waypoints." + wp, std::vector<double>());
70+
node_->declare_parameter("waypoints." + wp, std::vector<double>());
7171
std::vector<double> wp_pos;
7272
node_->get_parameter("waypoints." + wp, wp_pos);
7373
RCLCPP_INFO(

bt_nodes/perception/src/perception/IsDetected.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,13 @@ BT::NodeStatus IsDetected::tick()
208208
}
209209

210210
if (!removed) {
211-
frames_.push_back(detection.class_name + "_" + std::to_string(entity_counter));
212-
213-
if (
214-
pl::getInstance(node_)->publicTF(
215-
detection, std::to_string(entity_counter)) == -1)
216-
{
217-
return BT::NodeStatus::FAILURE;
218-
}
211+
frames_.push_back(detection.unique_id);
212+
// if (
213+
// pl::getInstance(node_)->publicTF(
214+
// detection) == -1)
215+
// {
216+
// return BT::NodeStatus::FAILURE;
217+
// }
219218
entity_counter++;
220219
++it;
221220
}
@@ -234,7 +233,7 @@ BT::NodeStatus IsDetected::tick()
234233
}
235234

236235

237-
setOutput("best_detection", detections[0].class_name);
236+
setOutput("best_detection", detections[0].unique_id);
238237

239238
if (pub_bb_img_) {
240239
cv::Point center2d(

robocup_bringup/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ament_target_dependencies(behaviors_main ${dependencies})
4343
add_executable(real_time_main src/real_time_main.cpp)
4444
ament_target_dependencies(real_time_main ${dependencies})
4545

46-
install(DIRECTORY bt_xml launch config maps
46+
install(DIRECTORY bt_xml launch config maps models
4747
DESTINATION share/${PROJECT_NAME}
4848
)
4949

robocup_bringup/config/real_time_params.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ attention_server:
77
period: 0.05
88
max_yaw: 1.3
99
max_pitch: 0.3
10-
max_vel_yaw: 1.75
11-
max_vel_pitch: 1.75
10+
max_vel_yaw: 0.5
11+
max_vel_pitch: 0.5
1212
rotation_threshold: 0.436332 # 25 degrees
1313

1414
perception_people_detection:

robocup_bringup/config/receptionist/tiago_nav_params.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ amcl:
3737
z_max: 0.05
3838
z_rand: 0.5
3939
z_short: 0.05
40-
scan_topic: /scan_raw
40+
scan_topic: /scan_filtered
4141
set_initial_pose: true
4242
initial_pose:
4343
x: 2.0
@@ -235,7 +235,7 @@ local_costmap:
235235
mark_threshold: 0
236236
observation_sources: scan
237237
scan:
238-
topic: /scan_raw
238+
topic: /scan_filtered
239239
max_obstacle_height: 2.0
240240
clearing: True
241241
marking: True
@@ -256,7 +256,7 @@ local_costmap:
256256
enabled: True
257257
observation_sources: scan
258258
scan:
259-
topic: /scan_raw
259+
topic: /scan_filtered
260260
max_obstacle_height: 2.0
261261
clearing: True
262262
marking: True
@@ -284,7 +284,7 @@ global_costmap:
284284
enabled: True
285285
observation_sources: scan
286286
scan:
287-
topic: /scan_raw
287+
topic: /scan_filtered
288288
max_obstacle_height: 2.0
289289
clearing: True
290290
marking: True
@@ -444,7 +444,7 @@ slam_toolbox:
444444
resolution: 0.05
445445
scan_buffer_maximum_scan_distance: 10.0
446446
scan_buffer_size: 10
447-
scan_topic: /scan_raw
447+
scan_topic: /scan_filtered
448448
solver_plugin: solver_plugins::CeresSolver
449449
stack_size_to_use: 40000000
450450
tf_buffer_duration: 30.0

robocup_bringup/launch/receptionist_dependencies.launch.py

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from launch import LaunchDescription
1919
from launch.actions import IncludeLaunchDescription
2020
from launch.launch_description_sources import PythonLaunchDescriptionSource
21+
from launch_ros.actions import Node
2122
# from launch.actions import LogInfo, RegisterEventHandler
2223
# from launch.event_handlers import OnExecutionComplete
2324
# import lifecycle_msgs
@@ -32,6 +33,7 @@ def generate_launch_description():
3233
yolo3d_dir = get_package_share_directory('yolo_bringup')
3334
navigation_dir = get_package_share_directory('navigation_system')
3435
knowledge_core_dir = get_package_share_directory('knowledge_core')
36+
person_tracker_dir = get_package_share_directory('cs4home_person_tracker')
3537

3638
# manipulation launchers
3739
move_group = IncludeLaunchDescription(
@@ -59,8 +61,8 @@ def generate_launch_description():
5961
),
6062
launch_arguments={
6163
# 'namespace': 'perception_system',
62-
'use_3d': 'True',
63-
'model': 'yolov8n.pt',
64+
# 'use_3d': 'True',
65+
'model': 'yolo11n.pt',
6466
'input_image_topic': '/head_front_camera/rgb/image_raw',
6567
'input_depth_topic': '/head_front_camera/depth/image_raw',
6668
'input_depth_info_topic': '/head_front_camera/rgb/camera_info',
@@ -83,7 +85,7 @@ def generate_launch_description():
8385
launch_arguments={
8486
'rviz': 'True',
8587
# 'map': package_dir + '/maps/robocup_arena_1.yaml', # ARENA C
86-
'map': package_dir + '/maps/apartamento_leon_gimp_con_mesa_tv.yaml', # ARENA B
88+
'map': package_dir + '/maps/ir_lab.yaml', # ARENA B
8789
'params_file': package_dir +
8890
'/config/receptionist/tiago_nav_params.yaml',
8991
'slam_params_file': package_dir +
@@ -98,11 +100,31 @@ def generate_launch_description():
98100
)
99101
)
100102

103+
laser_people_detector = Node(
104+
package='upo_laser_people_detector',
105+
executable='lasermodelnode',
106+
output='screen',
107+
parameters=[
108+
{'model_file': os.path.join(package_dir, 'models', 'LFE-PPN.onnx')},
109+
{'laser_topic': '/scan'}
110+
]
111+
)
112+
113+
114+
person_tracker = IncludeLaunchDescription(
115+
PythonLaunchDescriptionSource(
116+
os.path.join(person_tracker_dir, 'launch', 'person_tracker.launch.py')
117+
)
118+
)
119+
101120
ld = LaunchDescription()
102121
ld.add_action(navigation)
103122
ld.add_action(dialog)
104123
ld.add_action(yolo3d)
105124
ld.add_action(real_time)
125+
ld.add_action(knowledge_core)
126+
ld.add_action(laser_people_detector)
127+
ld.add_action(person_tracker)
106128
# ld.add_action(move_group)
107129
ld.add_action(manipulation_server)
108130

704 KB
Binary file not shown.

robocup_bringup/package.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
<exec_depend>hri</exec_depend>
1919
<exec_depend>motion</exec_depend>
2020
<exec_depend>perception</exec_depend>
21+
<exec_depend>upo_laser_people_detector</exec_depend>
22+
<exec_depend>cs4home_person_tracker</exec_depend>
2123

2224
<test_depend>ament_lint_auto</test_depend>
2325
<test_depend>ament_lint_common</test_depend>

robocup_bringup/thirdparty.repos

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,15 @@ repositories:
7171
type: git
7272
url: https://github.com/igonzf/GPSR_planning
7373
version: main
74-
75-
76-
77-
74+
ThirdParty/upo_laser_people_detector:
75+
type: git
76+
url: https://github.com/robotics-upo/upo_laser_people_detector.git
77+
version: ros2
78+
ThirdParty/cs4home_person_tracker:
79+
type: git
80+
url: https://github.com/CoreSenseEU/cs4home_person_tracker_module.git
81+
version: main
82+
ThirdParty/state_observers:
83+
type: git
84+
url: https://github.com/JRL-CARI-CNR-UNIBS/state_observers.git
85+
version: master

0 commit comments

Comments
 (0)