Jetracer Lidar: Unterschied zwischen den Versionen

Aus HSHL Mechatronik
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Zeile 13: Zeile 13:
*[Note: Please close the radar node first, otherwise an error will occur if you start the radar node multiple times.]
*[Note: Please close the radar node first, otherwise an error will occur if you start the radar node multiple times.]
*Enter the following command on the robot side to start the radar filter node.
*Enter the following command on the robot side to start the radar filter node.
roslaunch jetracer laser_filter.launch        #Start the radar filter node
[]
[]
*Run the following command on the virtual machine side to open the RVIZ graphical tool interface.
*Run the following command on the virtual machine side to open the RVIZ graphical tool interface.
rosrun rviz rviz
[]
[]
*Add LaserScan component, Topic select /filteredscan topic, Fixed Frame select base_footprint; add TF component to display the coordinates of the robot chassis; the red points in the image are the points scanned by the radar. At this time, it can be found that the radar data is only the first half, and the general data behind is filtered out.
*Add LaserScan component, Topic select /filteredscan topic, Fixed Frame select base_footprint; add TF component to display the coordinates of the robot chassis; the red points in the image are the points scanned by the radar. At this time, it can be found that the radar data is only the first half, and the general data behind is filtered out.
[]
*Run the following commands to enable the reconfigure parameters interface.
  rosrun rqt_reconfigure rqt_reconfigure   
[]
*Among which:
#laserAngle : Set the effective angle range to detect the angle in front of the robot
#distance: Set the effective distance, data beyond this distance will be filtered
*Drag the slider to adjust the parameters, and you can find that the red dot displayed by the radar also changes.

Version vom 11. Dezember 2024, 09:36 Uhr

LIDAR (Vll. Bild des LIDAR)
In diesem Tutorial: Enable the Lidar Node wird beschrieben wie man den LIDAR des JetRacers initial einschaltet und dann überprüft ob Daten gesendet werden. Danach kann dann eine Karte des Raumes erstellt werden. Hierfür kann dem Tutorial SLAM Lidar Mapping gefolgt werden, und es können vier verschiedene Mapping-Algorithmen ausprobiert werden.
Hier bei ist allerdings zu beachten das der im Tutorial gegebene Save Befehl abgeändert werden muss. Das jetbot_pro im Befehl muss auf jetracer_ros geändert werden, sodass der Befehle "cd catkin_ws/src/jetracer_ros/maps" lautet.

LIDAR Node einschalten

Daten in RVIZ einsehen

Daten analysieren

Daten filtern

  • From the above steps, we know the data format and radar data information sent by the radar, so we can choose to filter the unwanted parts.
  • [Note: Please close the radar node first, otherwise an error will occur if you start the radar node multiple times.]
  • Enter the following command on the robot side to start the radar filter node.
roslaunch jetracer laser_filter.launch        #Start the radar filter node

[]

  • Run the following command on the virtual machine side to open the RVIZ graphical tool interface.
rosrun rviz rviz

[]

  • Add LaserScan component, Topic select /filteredscan topic, Fixed Frame select base_footprint; add TF component to display the coordinates of the robot chassis; the red points in the image are the points scanned by the radar. At this time, it can be found that the radar data is only the first half, and the general data behind is filtered out.

[]

  • Run the following commands to enable the reconfigure parameters interface.
 rosrun rqt_reconfigure rqt_reconfigure    

[]

  • Among which:
  1. laserAngle : Set the effective angle range to detect the angle in front of the robot
  2. distance: Set the effective distance, data beyond this distance will be filtered
  • Drag the slider to adjust the parameters, and you can find that the red dot displayed by the radar also changes.