Thanks to visit codestin.com
Credit goes to github.com

Skip to content

D-Robotics/hobot_centerpoint

Repository files navigation

English| 简体中文

Function Introduction

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.

Supported Platforms

Platform System
RDK Ultra Ubuntu 20.04 (Foxy)
RDK S100 Ubuntu 22.04 (Humble)

Bill of Materials

Usage

Function Installation

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

Prepare the Back-Injection Dataset

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

Start the Algorithm and Image Visualization

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:

centerpoint

Interface Description

Topics

Name Message Type Description
/image_jpeg sensor_msgs/msg/Image Periodically publishes image topics in jpeg format

Parameters

Name Parameter Value Description
save_image "True"/"False", default is "False" Save the rendered image to the path "./render".

FAQ

  1. 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
  1. 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5