UbiquityRobotics / ubiquity_motor

Package that provides a ROS interface for the motors in UbiquityRobotics robots
BSD 3-Clause "New" or "Revised" License
25 stars 24 forks source link

Upgrade firmware needs to be ported to Python3 #149

Open rohbotics opened 3 years ago

JanezCim commented 2 years ago

One shady workaround, install python2 alongside python3 and update with that

sudo apt install python2
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
pip2 install requests
pip2 install pyserial
python2 ~/catkin_ws/src/ubiquity_motor/scripts/upgrade_firmware.py --file  /home/ubuntu/catkin_ws/src/ubiquity_motor/firmware/v40_20201209_enc.cyacd
JanezCim commented 2 years ago

Just for future reference: Some work has been done on this on https://github.com/UbiquityRobotics/ubiquity_motor/pull/152 but was stopped. As far as i remember @rohbotics has said that this would be a bigger project including huge changes in upgrade_firmware.py since changes from py2 to py3 were big.