Skip to Content
Hands-On ROS for Robotics Programming
book

Hands-On ROS for Robotics Programming

by Bernardo Ronquillo Japón
February 2020
Intermediate to advanced
432 pages
10h 50m
English
Packt Publishing
Content preview from Hands-On ROS for Robotics Programming

Hardware information and current voltage levels

The next block of commands prints information of the manufacturer, hardware and firmware versions, and battery levels. The following relates to the output:

  • Battery voltage is the same as before. The measurement gives a slightly different value, 9.294V, and it is OK.
  • 5V voltage is that of the power supply to the Raspberry Pi through its GPIO. GoPiGo red board has a power regulator that transforms the 9V raw input to a regulated 5V. If the batteries are properly charged, this value should be very close to 5V as shown here:
print("Manufacturer : ", GPG.get_manufacturer() )print("Board : ", GPG.get_board() )print("Serial Number : ", GPG.get_id() )print("Hardware version: ", GPG.get_version_hardware()) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering ROS for Robotics Programming

Mastering ROS for Robotics Programming

Lentin Joseph
ROS Robotics By Example - Second Edition

ROS Robotics By Example - Second Edition

Lentin Joseph, Carol Fairchild, Dr. Thomas L. Harman

Publisher Resources

ISBN: 9781838551308Supplemental Content