Skip to content

Commit 3ed5380

Browse files
authored
Merge branch 'humble-devel' into harmonic-follow-line-tests
2 parents 61c1fe3 + efd6d0c commit 3ed5380

File tree

25 files changed

+210
-73
lines changed

25 files changed

+210
-73
lines changed

RoboticsInfrastructure

common/hal_interfaces/hal_interfaces/general/lidar.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ def pointCloud2LidarData(cloud):
4646
lidar.intensities = [i[0] for i in intensities]
4747

4848
# Timestamp (ROS 2 Time -> seconds)
49-
lidar.timeStamp = (
50-
cloud.header.stamp.sec + (cloud.header.stamp.nanosec * 1e-9)
51-
)
49+
lidar.timeStamp = cloud.header.stamp.sec + (cloud.header.stamp.nanosec * 1e-9)
5250

5351
# Validate point cloud
5452
lidar.is_dense = all(

database/exercises/db.sql

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -148,19 +148,19 @@ COPY public.exercises (id, exercise_id, name, description, tags, status, url) FR
148148

149149

150150
COPY public.exercises_universes (id, exercise_id, universe_id, is_default) FROM stdin;
151-
1 2 1 False
152-
2 5 1 False
153-
3 6 2 False
151+
1 2 1 True
152+
2 5 1 True
153+
3 6 2 True
154154
4 7 31 False
155155
5 10 4 False
156156
6 1 5 False
157157
7 1 6 False
158158
8 4 7 False
159159
9 4 8 False
160160
10 3 9 False
161-
11 11 1 False
161+
11 11 1 True
162162
12 8 10 False
163-
13 9 12 False
163+
13 9 12 True
164164
14 3 13 False
165165
15 3 14 False
166166
16 3 15 False
@@ -194,12 +194,17 @@ COPY public.exercises_universes (id, exercise_id, universe_id, is_default) FROM
194194
44 3 42 True
195195
45 3 43 True
196196
46 27 44 True
197-
47 1 41 False
198-
48 1 42 False
199-
49 1 50 False
200-
50 1 51 False
201-
51 1 52 False
202-
52 1 53 False
197+
47 6 11 False
198+
48 2 45 False
199+
49 5 45 False
200+
50 11 45 False
201+
51 9 46 False
202+
52 1 41 False
203+
53 1 42 False
204+
54 1 50 False
205+
55 1 51 False
206+
56 1 52 False
207+
57 1 53 False
203208
\.
204209
-- 30 16 3
205210

docs/exercise-status.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,24 @@
44

55
| Exercise ID | Python simpleAPI | Python ROS2 | C++ simpleAPI | C++ ROS2 | Simulator | Notes |
66
| --- | --- | --- | --- | --- | --- | --- |
7-
| Basic Vacuum Cleaner | ok | ok | ok | ok | Gazebo11 | FSM |
7+
| Basic Vacuum Cleaner | ok | ok | ok | ok | Gazebo Harmonic + Classic | FSM |
88
| Follow Line | ok | ok | ok | ok | Gazebo11 | PID control |
9-
| Obstacle Avoidance | ok | | | | Gazebo 11 | VFF |
10-
| Global navigation | ok | | | | Gazebo 11 | GPP |
9+
| Obstacle Avoidance | ok | | | | Gazebo Harmonic + Classic | VFF |
10+
| Global navigation | ok | | | | Gazebo Harmonic + Classic | GPP |
1111
| Laser Gridmap mapping | ok | | | | Gazebo Harmonic | |
12-
| MonteCarlo Laser Loc | ok | | | | Gazebo 11 | AMCL |
12+
| MonteCarlo Laser Loc | ok | | | | Gazebo Harmonic + Classic | AMCL |
1313
| MonteCarlo Visual Loc | ok | | | | Gazebo 11 | AMCL |
1414
| Marker-based visual Loc | ok | | | | Gazebo Harmonic | PnP |
15-
| Localized Vacuum Cleaner | ok | | | | Gazebo 11 | BSA |
16-
| Autoparking | ok | | | | Gazebo 11 | |
15+
| Localized Vacuum Cleaner | ok | | | | Gazebo Harmonic + Classic | BSA |
16+
| Autoparking | ok | | | | Gazebo Harmonic + Classic | |
17+
| Autoparking Lidar | ok | | | | Gazebo Harmonic + Classic | |
1718
| Amazon Warehouse | ok | | | | Gazebo 11 | |
1819
| Follow Person | ok | | | | Gazebo 11 | |
1920
| Drone Follow Road | ok | | | | Gazebo Harmonic | |
2021
| Drone Rescue people | ok | | | | Gazebo Harmonic | |
2122
| Drone Gymkhana | ok | | | | Gazebo Harmonic | |
2223
| Drone Power tower Inspection | ok | | | | Gazebo Harmonic | |
23-
| Visual 3D reconstruction | ok | | | | Gazebo 11 | |
24+
| Visual 3D reconstruction | ok | | | | Gazebo Harmonic + Classic | |
2425
| DL e2e Visual control | ok | | | | Gazebo 11 | |
2526
| DL digit classification | ok | | | | none | |
2627
| DL human detection | ok | | | | none | |
@@ -36,4 +37,4 @@
3637
| Drone Package delivery | | | | | | broken |
3738
| Drone hangar | | | | | | |
3839
| Drone Visual Lander | | | | | | broken |
39-
| Drone Cat and Mouse | | | | | | broken |
40+
| Drone Cat and Mouse | | | | | | broken |

exercises/static/exercises/3d_reconstruction/python_template/ros2_humble/WebGUI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import threading
55
import numpy as np
66

7-
from gui_interfaces.general.measuring_threading_gui import MeasuringThreadingGUI
7+
from gui_interfaces.general.measuring_threading_gui_harmonic import MeasuringThreadingGUI
88
from console_interfaces.general.console import start_console
99

1010

exercises/static/exercises/autoparking/python_template/ros2_humble/WebGUI.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import json
22

3-
from gui_interfaces.general.measuring_threading_gui_harmonic import MeasuringThreadingGUI
3+
from gui_interfaces.general.measuring_threading_gui_harmonic import (
4+
MeasuringThreadingGUI,
5+
)
46
from console_interfaces.general.console import start_console
57
from map import Map
68
from HAL import getFrontLaserData, getRightLaserData, getBackLaserData

exercises/static/exercises/autoparking_lidar/python_template/ros2_humble/WebGUI.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import json
22
import math
33

4-
from gui_interfaces.general.measuring_threading_gui_harmonic import MeasuringThreadingGUI
4+
from gui_interfaces.general.measuring_threading_gui_harmonic import (
5+
MeasuringThreadingGUI,
6+
)
57
from console_interfaces.general.console import start_console
68
from HAL import getLidarData
79

@@ -35,7 +37,9 @@ def update_gui(self):
3537
is_valid = False
3638
if is_valid:
3739
x, y, z = lidar.points[i]
38-
points.append((float(x*10), float((z + 1.75)*10), float(-y*10)) + color)
40+
points.append(
41+
(float(x * 10), float((z + 1.75) * 10), float(-y * 10)) + color
42+
)
3943
self.payload["lidar"] = json.dumps(points)
4044
message = json.dumps(self.payload)
4145
self.send_to_client(message)

exercises/static/exercises/montecarlo_laser_loc/python_template/ros2_humble/WebGUI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import math
33
import matplotlib.pyplot as plt
44

5-
from gui_interfaces.general.measuring_threading_gui import MeasuringThreadingGUI
5+
from gui_interfaces.general.measuring_threading_gui_harmonic import MeasuringThreadingGUI
66
from console_interfaces.general.console import start_console
77
from map import Map
88
from HAL import getPose3d

exercises/static/exercises/vacuum_cleaner/python_template/ros2_humble/WebGUI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from rclpy.node import Node
55
from rclpy.executors import SingleThreadedExecutor
66
from nav_msgs.msg import Odometry
7-
from gui_interfaces.general.measuring_threading_gui import MeasuringThreadingGUI
7+
from gui_interfaces.general.measuring_threading_gui_harmonic import MeasuringThreadingGUI
88
from console_interfaces.general.console import start_console
99
from map import Map
1010

exercises/static/exercises/vacuum_cleaner_loc/python_template/ros2_humble/WebGUI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import threading
66
from PIL import Image
77

8-
from gui_interfaces.general.measuring_threading_gui import MeasuringThreadingGUI
8+
from gui_interfaces.general.measuring_threading_gui_harmonic import MeasuringThreadingGUI
99
from console_interfaces.general.console import start_console
1010
from map import Map
1111
from HAL import getPose3d

0 commit comments

Comments
 (0)