To build the package, navigate to the edge-ai-suites/robotics-ai-suite/components/adbscan/ROS2_node directory and execute:
colcon buildTo set up the environment for running the ROS 2 nodes associated with the ADBSCAN package, please navigate to the following directory to source the setup.bash file: edge-ai-suites/robotics-ai-suite/components/adbscan/ROS2_node/install/
cd edge-ai-suites/robotics-ai-suite/components/adbscan/ROS2_node/install/
source setup.bashFor RealSense camera input, execute:
ros2 launch adbscan_ros2 play_demo_realsense_launch.py For Lidar input, execute:
ros2 launch adbscan_ros2 play_demo_lidar_launch.py The input data is passed into the ROS2 node through a ROS2 topic defined in the ROS2 configuration file by the parameter Lidar_topic. You can edit this parameter for a customized name.
The configuration files are located in the edge-ai-suites/robotics-ai-suite/components/adbscan/ROS2_node/config directory.
-
2D Lidar Input:
- File name:
adbscan_sub_2D.yaml - Message type:
sensor_msgs::msg::LaserScan
- File name:
-
3D Lidar Input:
- File name:
adbscan_sub_3D.yaml - Message type:
sensor_msgs::msg::PointCloud2
- File name:
-
Realsense Input:
- File name:
adbscan_sub_RS.yaml - Message type:
sensor_msgs::msg::PointCloud2
- File name:
The output is published to the ROS2 topic obstacle_array, and the message format is nav2_dynamic_msgs::msg::ObstacleArray.
To view the messages being published to the obstacle_array topic, you can use the following command:
ros2 topic echo /obstacle_array-
Launch RViz:
- Open a terminal and start RViz by typing:
rviz2
- Open a terminal and start RViz by typing:
-
Subscribe to the Topic:
- In RViz, add a new display by clicking on
Addin theDisplayspanel. - Select
MarkerArrayfrom the list of available display types.
- In RViz, add a new display by clicking on