DonkeyCar for JetRacer ROS Tutorial III: Web Control

From Waveshare Wiki
Revision as of 03:52, 8 November 2022 by Eng52 (talk | contribs) (Created page with "==WEB Control== *Open the terminal in Jetson Nano and run the following command <pre> jetson@jetson:~$ source ~/env/bin/activate (env) jetson@jetson:~$ cd mycar/ (env) jetson@...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

WEB Control

  • Open the terminal in Jetson Nano and run the following command
jetson@jetson:~$ source ~/env/bin/activate
(env) jetson@jetson:~$ cd mycar/
(env) jetson@jetson:~/mycar$ python manage.py drive

Web Control01.png

  • Note: Do not add "sudo" before python "manage.py drive", otherwise it will fail to run.
  • Enter "http://<jetson_ip_address>:8887" in your browser bar to connect the WEB control interface of the car. Note that you should delete "<>" after entering "jetson_ip_address", otherwise it will fail to display.

Web control02.png

  • Choose the max velocity of the car in Max Throttle, and 30% is recommended.
  • Right-click the joystick window and drag it to control the car's movement.
  • Angle & Throttle displays the current steering angle and the motor speed of the rear wheel." Start Recording" key can the collecting data from the images taken by the car. The pictures taken are saved under the directory of "~/mycar/data"
  • On the mobile phone, open http://<jetbot_ip_address>:8887 with a browser, click start Vehicle, and you can use the mobile phone to control the car to move.

Web control03.png

  • It is recommended to open it with Firefox or Google Chrome, other browsers may have some functions that are not available.
  • Option Description
    • start Recording : Start recording image, steering angle and throttle value by recording data.
    • Throttle mode - Option to set throttle to constant. Set to constant mode throttle will be max uncontrollable.
    • Pilot mode - Select the control mode mode, manual control, steering automatic control or fully automatic control.
    • Max throttle - Choose the maximum throttle.
  • The car can be controlled by the keyboard
    • Spacebar : stop moving or recording
    • R : control recording
    • I : increase forward speed
    • K : Decrease forward speed
    • J : turn left
    • L : turn right