Jetracer Lidar

Aus HSHL Mechatronik
Zur Navigation springen Zur Suche springen
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

  • Firstly, you need to power on the lidar and make it rotate.
  • Run the following commands to enable the lidar node on the robot.
roslaunch jetracer lidar.launch

[]

  • If the node can not be enabled, please press the RESET key on the expansion board, and reboot it.
  • If you want to run Is/dev, please check whether the expansion board is connected to Jetson Nano,and whether or not the ttyACM0 and ttyACM11 device is found. [ttyACM0 is for micro-controller communicationn, and ttyACM1 is for lidar communication.]
 ls /dev

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.