A filter using the dot product of direction vectors from two adjacent points and their midpoint vector.
- ROS2 Humble or later
- laser_filters package
- socat
- (Optional) YDLIDAR-SDK
mkdir ~/dora2filter_ws/src -p
cd ~/dora2filter_ws/src
git clone https://github.com/NITKK-ROS-Team/dora2filter.git
git clone https://github.com/YDLIDAR/ydlidar_ros2_driver.git -b humble
# git clone https://github.com/Ar-Ray-code/tmini_plus_emulator.git # Optional : use filter demo without LiDAR
cd ~/dora2filter_ws
rosdep install --from-paths src --ignore-src -r -y
colcon buildStart the LiDAR driver
ros2 launch ydlidar_ros2_driver ydlidar_launch.py params_file:=<path to YDLIDAR config>Start the filter node
ros2 run laser_filters scan_to_scan_filter_chain --ros-args -r __node:=dora2_filter_node --params-file ./src/dora2filter/config/dora2_filter.yaml
Special thanks : @Doraemonjayo