Comments (2)
I removed pip2 (well I renamed it as pip for now although that will lead to issues on GoPiGo OS. I have to revisit this)
from gopigo3.
Thanks @CleoQc but I still got some (different) errors installing, so I found a way that works. I think you should revert the change you did for me.
BTW - I was pulling my hair out trying to figure out why I was updating and not seeing the _check_serial_list method. Turns out the install_on_ubuntu branch didn't have the latest gopigo3.py file. I switched to the master branch (and manually brought the pkl list down) and ROSbot in ROS2 is now "ticking along 16 times better"!
For anyone that might need to UPDATE GoPiGo3, DI_Sensors, and R4R_Tools(gets I2C_mutex) on Ubuntu 20.04.2:
=== UPDATE THAT WORKED
(!!! log in as pi !!!)
- BACKUP ~/Dexter
cp -r ~/Dexter ~/Dexter.old
rm -rf ~/Dexter
- Get Dexter/GoPiGo3 (from master)
$ sudo git clone http://www.github.com/DexterInd/GoPiGo3.git /home/pi/Dexter/GoPiGo3
- Get Dexter/DI_Sensors
$ sudo git clone https://github.com/DexterInd/DI_Sensors.git /home/pi/Dexter/DI_Sensors
- Setup RFR_Tools (for I2C_mutex)
$ sudo git clone https://github.com/DexterInd/RFR_Tools.git /home/pi/Dexter/lib/Dexter/RFR_Tools
$ cd /home/pi/Dexter/lib/Dexter//RFR_Tools/miscellaneous/
$ sudo python3 setup.py install
- SETUP GoPiGo3 Python3 egg
$ cd /home/pi/Dexter/GoPiGo3/Software/Python
$ sudo python3 setup.py install
...
Installed /usr/local/lib/python3.8/dist-packages/gopigo3-1.3.0-py3.8.egg
- Install DI_Sensors egg
$ cd /home/pi/Dexter/DI_Sensors/Python
$ sudo python3 setup.py install
- Get serial number file
$ wget -O .list_of_serial_numbers.pkl https://raw.githubusercontent.com/DexterInd/GoPiGo3/master/Install/list_of_serial_numbers.pkl
- Check your python is using the installed package
$ python3
Python 3.8.10 (default, Jun 2 2021, 10:49:15)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gopigo3
>>> print(gopigo3.__file__)
/usr/local/lib/python3.8/dist-packages/gopigo3-1.3.0-py3.8.egg/gopigo3.py
- Check what methods are in GoPiGo3 class:
$ python3
>>> import gopigo3
>>> for f in dir(gopigo3.GoPiGo3):
... print(f)
...
look for
_check_serial_number_for_16_ticks
- [OPTIONAL - Create default ~/Dexter/gpg3_config.json
>>> gpg3=gopigo3.GoPiGo3()
(ctrl-D to exit)
more ~/Dexter/gpg3_config.json
- [MY OPTION] - copy gpg_config.json
cp ~/rosbot-on-gopigo3/configs/tilde-Dexter.gpg3_config.json ~/Dexter/gpg3_config.json
from gopigo3.
Related Issues (20)
- Unindented space character in line 113 and 115 which causes indentation errors - found in filename easygopigo3.py HOT 1
- GoPiGo3 Control Panel Should Display Precise Wheel Base Values
- Cant install on Ubuntu HOT 1
- WIBNI: Easysensor Servo params in gpg_config.json HOT 1
- Withdrawn
- easysensors.ultrasonicsensor.read_mm() prints raw value debug info HOT 1
- Change link to GoPiGo.io? HOT 2
- easygopygo3's "stop()" method does not remove power from the motors HOT 1
- WIBNI: Installation Success Test at end of update_gopigo3.sh HOT 1
- Schematics - Power section needs component designation and part numbers for inductor
- Enhancement Request: Allow for multiple tabs on the new calibration routines to accomondate different functions
- The current battery warning/shut-down constants for the GoPiGo are inappropriate for the new Li-Ion batteries HOT 2
- ObstacleAvoidanceRobot Does Not Fail Correctly For No Distance Sensor Case HOT 4
- Sound Defaults To HDMI in GoPiGo3 Install Over Legacy PiOS HOT 1
- False "Firmware update is needed" on failed Bullseye installs HOT 1
- Run GoPiGo3 w/ RHEL/CentOS/Fedora IoT? HOT 7
- Install_On_Ubuntu Branch gopigo3.py load_robot_constants() does not create gpg3_config.json HOT 1
- GoPiGo3.cpp generates compile warnings
- C++ GoPiGo3 API needs 16tick board support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gopigo3.