altgpg3-fix-change-travis-token-2018.4.dev4.tar.gz
Install the package
sudo pip install altgpg3-fix-change-travis-token==2018.4.dev4
Alternative to DexterIndustries' library for the GoPiGo3.
robot
gopigo
gopigo3
dexter industries
learning
education
alternative
Full description: #################### AltGPG3 CLI Commands #################### Use ``altgpg3 -h`` in your terminal to access the helper menu for it. This CLI tool for the `GoPiGo3`_ board has the following functionalities: 1. ``action`` command is for controlling the robot to go in whichever direction. 2. ``check`` command is for checking the version of the fw, hw, voltages, serial numbers and so on. 3. ``firmware`` command is used for burning the firmware onto the `GoPiGo3`_ board. 4. ``shutdown-button`` command is used for installing or uninstalling a service with systemd with which it allows the user to shutdown the Pi just by pressing the button power on the `GoPiGo3`_. For all of these 4 commands, there's a different helper menu. So for ``altgpg3 action -h`` you'll be getting something different than for ``altgpg3 check -h``. ###################### CLI Commands Breakdown ###################### In the previous part, there are listed 4 major commands that can be used with this CLI tool. For each of the previous commands there are other sub-commands that can be used. These are: 1. ``action`` command + the following command: * ``forward`` - for moving the GoPiGo3 forward without stopping. * ``backward`` - for moving the GoPiGo3 backward without stopping. * ``left`` - for rotating the GoPiGo3 to the left without stopping. * ``right`` - for rotating the GoPiGo3 to the right without stopping. * ``stop`` - to stop the GoPiGo3 from doing anything. * ``rotate`` - to rotate the GoPiGo3 around (either to the left or right) for a given number of rotational degrees. Must be used with `--degrees-rotate` option. * ``dex-eyes-on`` - light up GoPiGo3 mascot's eyes. Does not support changing the color yet. * ``dex-eyes-off`` - turn off GoPiGo3 mascot's eyes. * ``-s``/``--speed`` option - can be set between 0 and 300 and it specifies how fast the GoPiGo3 can go. By default it's set to 300. Can be used with ``forward``,``backward``,``left``,``right`` and ``rotate`` commands. * ``-d``/``--distance`` option - specifies how much the robot can go in one direction in centimeters. This can be a negative number for reverse or positive for the latter. Can be used with ``forward`` and ``backward`` commands. * ``-r``/``--degrees-rotate`` option - specifies how many degrees to rotate the GoPiGo3 on the spot. Number can be negative (to the left) or positive (to the right). Can only be used with the ``rotate`` command. By default it's set to 360 degrees. * ``-h``/``--help`` - to call the helper for this sub-command. 2. ``check`` command + the following command: * ``fw`` - to get the current firmware version on the `GoPiGo3`_ board. * ``hw`` - to get the hardware version of your `GoPiGo3`_ board. * ``info`` - to get the manufacturer name, board, serial number, versions and voltages. * ``-h``/``--help`` - to call the helper for this sub-command. 3. ``firmware`` command + the following command: * ``burn`` - to burn the firmware onto the `GoPiGo3`_ board. * ``-s``/``--sudo`` - appends the ``sudo`` command to any bash(shell)-issues commmands. For this, you must be sure the user you're running with is in the sudoers group. * ``-h``/``--help`` - to call the helper for this sub-command. 4. ``shutdown-button`` command + the following command: * ``configure`` - installs the shutdown service for the GoPiGo3. With this ``gpg3_power.service`` you can press the button on the `GoPiGo3` while it's running and the Pi will trigger the shutdown procedure. * ``uninstall`` - in case you want to uninstall the python package, it's recommended to also call this command to uninstall the service along with it. * ``-h``/``--help`` - to call the helper for this sub-command. ######## Examples ######## For driving the robot forward for 20 centimers we would do this: .. code-block:: bash altgpg3 action forward --distance 20 For rotating the robot on the spot to the left by 170 degrees at a speed of 100 this can be done: .. code-block:: bash altgpg3 action rotate --speed 100 --degrees-rotate -170 Turning on the eyes and then off is rather simple: .. code-block:: bash altgpg3 action dexter-eyes-on # wat some time altgpg3 action dexter-eyes-off Burning the firmware onto the GoPiGo3 board is pretty straightforward: .. code-block:: bash altgpg3 firmware burn --sudo Getting the manufacturer info, hw and fw versions, voltages, etc you can type in: .. code-block:: bash altgpg3 check info .. _gopigo3: https://www.dexterindustries.com/shop/gopigo-advanced-starter-kit/
Checksums
MD5 | dc6e20d08bb47a3756ba3ff8e0f8750e |
SHA1 | a33e3f54f06b755b6a92746c6db236b79a731e45 |
SHA256 | bf733bcc561d58c448a847335b94e15646f0aa3d6e0ed321e97030831d261308 |
SHA512 | 31ea49f07dcb2a07ec1b3455f9df06e3d84e43972b0b9938ac085d4403fbd9459c1ff9ca6d197aaf580d4fa9656ec55487ff29ace4ff2a4649f26a1cf7bfd52d |
Files
- altgpg3-fix-change-travis-token-2018.4.dev4/setup.py
- altgpg3-fix-change-travis-token-2018.4.dev4/setup.cfg
- altgpg3-fix-change-travis-token-2018.4.dev4/PKG-INFO
- altgpg3-fix-change-travis-token-2018.4.dev4/MANIFEST.in
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3/gopigo3.py
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3/easygopigo3.py
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3/command_line.py
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3/additional-files/README.rst
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3/additional-files/openocd_compiled.zip
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3/additional-files/gpg3_power.service
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3/additional-files/gpg3_power.py
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3/additional-files/GoPiGo3_Firmware_0.3.3.bin
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3/additional-files/firmware_burner.sh
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3/__init__.py
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3_fix_change_travis_token.egg-info/zip-safe
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3_fix_change_travis_token.egg-info/top_level.txt
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3_fix_change_travis_token.egg-info/SOURCES.txt
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3_fix_change_travis_token.egg-info/requires.txt
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3_fix_change_travis_token.egg-info/PKG-INFO
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3_fix_change_travis_token.egg-info/entry_points.txt
- altgpg3-fix-change-travis-token-2018.4.dev4/altgpg3_fix_change_travis_token.egg-info/dependency_links.txt
Uploaded
over 7 years agoPackage Size
3.3 MBDownloads
22
wget
wget --content-disposition "https://packagecloud.io/twine/develop/packages/python/altgpg3-fix-change-travis-token-2018.4.dev4.tar.gz/download?distro_version_id=166"