English| 简体中文
The laser radar target detection algorithm is the CenterPoint
algorithm model trained on the OpenExplorer platform using the nuscenes dataset.
The algorithm takes 32-line laser radar point cloud data as input and outputs information including 3D detection boxes of targets, confidence, and category. Supported target detection types include car, truck, bus, barrier, motorcycle, and pedestrian, totaling six major categories.
This example uses local laser radar point cloud files as input, utilizes BPU for algorithm inference, and publishes rendered images containing point cloud data, target detection boxes, and orientation messages, displaying algorithm results on the PC browser.
Platform | System |
---|---|
RDK Ultra | Ubuntu 20.04 (Foxy) |
RDK S100 | Ubuntu 22.04 (Humble) |
Run the following commands in the terminal of the RDK system for quick installation:
sudo apt update
sudo apt install -y tros-humble-hobot-centerpoint
sudo apt install -y tros-humble-websocket
Run the following commands in the terminal of the RDK system to download and unzip the dataset:
# Download the point cloud file for back-injection on the board side
cd ~
wget http://sunrise.horizon.cc/TogetheROS/data/hobot_centerpoint_data.tar.gz
# Unzip
mkdir -p ~/centerpoint_data
tar -zxvf ~/hobot_centerpoint_data.tar.gz -C ~/centerpoint_data
Run the following commands in the terminal of the RDK system to start the algorithm and visualization:
# Configure the tros.b humble environment
source /opt/tros/humble/setup.bash
# Launch the file
if [ -L qat ]; then rm qat; fi
ln -s `ros2 pkg prefix hobot_centerpoint`/lib/hobot_centerpoint/qat/ qat
ln -s ~/centerpoint_data centerpoint_data
ros2 launch hobot_centerpoint hobot_centerpoint.launch.py
After successful startup, open the browser on the same network computer and access the IP address of RDK http://IP:8000
(IP is the IP address of RDK), you can see the real-time visual effect of the algorithm:
Name | Message Type | Description |
---|---|---|
/image_jpeg | sensor_msgs/msg/Image | Periodically publishes image topics in jpeg format |
Name | Parameter Value | Description |
---|---|---|
save_image | "True"/"False", default is "False" | Save the rendered image to the path "./render". |
- Obtain the path of the runtime configuration file.
On the RDK, use the following commands to query the path of the runtime configuration file:
source /opt/tros/humble/setup.bash
ls `ros2 pkg prefix hobot_centerpoint`/lib/hobot_centerpoint/config/centerpoint_pointpillar_nuscenes/workflow_latency.json
- Control the backfilling speed.
time_diff_ms
represents the interval time for each backfilling, and the unit is milliseconds. The default value is 200 milliseconds, that is, data is backfilled every 200 milliseconds.
"time_diff_ms": 200