Difference between revisions of "2019WinterTeam2"

From MAE/ECE 148 - Introduction to Autonomous Vehicles
Jump to navigation Jump to search
Line 16: Line 16:
==RC Car details==
==RC Car details==
*RC Car hardware:
*RC Car hardware:
*RC Car software:
::Here is a detailed list of the hardware used in the project:
==ROS Project==
*ROS [[http://wiki.ros.org/ROS/Tutorials ROS Wiki]]
**The ROS Wiki explains ROS in great details. Here is a sum of the content learned from this webpage for the project.

{| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;"
{| class="wikitable" style="margin-left: auto; margin-right: auto; border: none;"
|+ Basic Commands in ROS
|+ RC Car BOM(Bill of Material)
! scope="col" style="width: 280px;" | ROS Command
! scope="col" style="width: 60px;" | Part Name
! scope="col" style="width: 500px;" | Description
! scope="col" style="width: 60px;" | Part Number
! scope="col" style="width: 60px;" | Datasheet
! scope="col" style="width: 60px;" | Manufacturer
! scope="col" style="width: 30px;" | Qty
! scope="col" style="width: 100px;" | Unit Price
! scope="col" style="width: 60px;" | Purchase Link
! scope="col" style="width: 500px;" | Purpose in RC Car
| ESC||SBEC ESC 60a||[http://www.hobbywing.com/goods.php?id=358 Datasheet]||QuicRun||
| PWM Controller||PCA9685||[https://cdn-shop.adafruit.com/datasheets/PCA9685.pdf Datasheet]||Adafruit||
| rospack find <package name>|| Find information about the package
| USB Module||HW384||[https://www.amazon.com/HW384-Step-Down-Module-Portable-Supply/dp/B07KKF51TV Datasheet]||SheoIseven
| roscd <package name>|| cd into the package of type ros
| Motor||RS540||[http://www.alphalanding.com/rc-track/rs_540rhsh.pdf Datasheet]||Tamiya||
| rosls <package name>|| list relevent directories an files in the ros workspace
| Blue/Red LED||APM External||[https://hobbyking.com/en_us/kingduino-apm-external-led-module.html Datasheet]||Kingduino||
| roscore || The primary node to begin a ros program
| Main Switch||T/XT60/EC3 Plug||[https://usa.banggood.com/High-Current-LiPo-Battery-Switch-With-Optional-T-PlugXT60EC3-Plug-p-1056050.html?gmcCountry=US&currency=USD&createTmp=1&utm_source=googleshopping&utm_medium=cpc_bgcs&utm_content=zouzou&utm_campaign=pla-usg-all-pc&ID=521833&cur_warehouse=CN Datasheet]|| Banggood
| rosnode list || list all the active ros nodes
| Chasis||TT01 TT01E||[https://www.amazon.com/Aluminium-Carbon-Shaft-Drive-Touring/dp/B07496B5HQ/ref=sr_1_13?ie=UTF8&qid=1546999189&sr=8-13&keywords=tamiya+tt01 Datasheet]||Radcat||
| rosnode info || list information about the ros node
| RGB LED||N/A||[https://www.makerlab-electronics.com/product/rgb-led-module/ Datasheet]||MakerLab||
| rosrun <name of package> <name of node> || run the rose node of that specific package type
| Relay||KR1201A-4||[https://www.aliexpress.com/item/433Mhz-Universal-Wireless-Remote-Control-Switch-DC12V-10A-1CH-relay-Receiver-Module-with-RF-Remote-433/32654946482.html Datasheet]||QIACHIP||
| rosnode ping <name of the node> || connect to the rosnode
|Raspberry Pi||Model 3 b+||[https://www.terraelectronica.ru/pdf/show?pdf_file=%252Fds%252Fpdf%252FT%252FTechicRP3.pdf Datasheet]||
| rostopic list || list the live ros topics
| RP Camera||913-2664||[https://cdn.sparkfun.com/datasheets/Dev/RaspberryPi/RPiCamMod2.pdf Datasheet]||Raspberry Pi||
| rostopic pub || list the rostopic publishers are subscribed to
| "11.1 V 3 cell LiPo"||XT-60||[https://hobbyking.com/en_us/turnigy-battery-3000mah-3s-20c-lipo-pack-xt-60.html Datasheet]||Turnigy
| rosservice list || list the ongoing ros services
| Voltage Reader||EC||NA||BX100||
| Servo Motor||MG995||[https://usa.banggood.com/MG995-High-Torgue-Mental-Gear-Analog-Servo-p-73885.html?gmcCountry=US&currency=USD&createTmp=1&utm_source=googleshopping&utm_medium=cpc_bgcs&utm_content=zouzou&utm_campaign=pla-usg-all-pc&cur_warehouse=CN Datasheet]||N/A||

Revision as of 05:42, 25 March 2019

Team 2 attempted to achieve object avoidance by incoorporating a 360° RPLIdar along with the camera, and controlling their operation using ROS (Robot Operating System).



Welcome to team2 ECE148 Wiki page. In this class, we build and utilized a remote-controlled car. In this page, we will cover the details behind the design of the RC car and demonstrate results. The goal in this class was to perform the following tasks:

  • Autonomously drive on an indoor track
  • Autonomously drive on an outdoor track
  • Obstacle avoidance using RPLidar and ROS

Team Members

  • Chen Du (ECE grad)
  • Jingying Chen (MAE undergrad)
  • Marshall Garcia (MAE undergrad)
  • Tina Kafel (ECE undergrad)

RC Car details

  • RC Car hardware:
Here is a detailed list of the hardware used in the project:
RC Car BOM(Bill of Material)
Part Name Part Number Datasheet Manufacturer Qty Unit Price Purchase Link Purpose in RC Car
ESC SBEC ESC 60a Datasheet QuicRun
PWM Controller PCA9685 Datasheet Adafruit
USB Module HW384 Datasheet SheoIseven
Motor RS540 Datasheet Tamiya
Blue/Red LED APM External Datasheet Kingduino
Main Switch T/XT60/EC3 Plug Datasheet Banggood
Chasis TT01 TT01E Datasheet Radcat
RGB LED N/A Datasheet MakerLab
Relay KR1201A-4 Datasheet QIACHIP
Raspberry Pi Model 3 b+ Datasheet
RP Camera 913-2664 Datasheet Raspberry Pi
"11.1 V 3 cell LiPo" XT-60 Datasheet Turnigy
Voltage Reader EC NA BX100
Servo Motor MG995 Datasheet N/A
  • RPLidar
What is an RPLidar? Lidar is a device that measures the distance to a target by sending pulsed laser beams and receiving the reflected beams with a sensor. The accuracy of lidar is higher than other sensors of similar nature, such as an IR sensor or an ultrasonic sensor. An RPLidar is a 360-degree 2D lidar.
What are the different types of RPLiDAR?
  • The RPLidar used in our project is the A1M8 12M range model. A1M8 is based on laser triangulation ranging principle and uses high-speed version acquisition and processing hardware. This system measures distance data more than 8000 times per second.
  • The other model
  • The other other model

  • RPLiDAR and Raspberry Pi

  • ROS and RPLidar
Upon every connection to a USB port, sudo permission to access the serial port for the lidar must be granted. In the Linux operating system, the command to list the responsible port and granting permission would be the following:
ls -l /dev |grep ttyUSB#lists the port connected to the LiDAR
sudo chmod 666 /dev/ttyUSB0#grants permission to write to USB0
To test the RPLiDAR within ROS, we can run the rplidar node and view the realtime readings and mappings:
roslaunch rplidar_ros view_rplidar.launch#running the RPLiDAR live feed
An example of an RPLiDAR scanning the room
rosrun rplidar_ros rplidarNodeClient#read values from LiDAR

The lidar scan values can be read by subscribing to rplidar_node topic:

A live read of the RPLiDAR Scans and relevent topics

Viewing graphs of ongoing scans on the roscore primary node can be viewed using a ros rqt graph generator:

A rqt graph of RPLiDAR subscriber and publisher to the scan topic