smartsystemslab-uf / ROS-ArloRobot

Repository for ROS modules related to research with the Arlo Robot.
GNU General Public License v3.0
2 stars 3 forks source link

add support for the pynq z2 board #12

Open mxpanoff opened 2 years ago

mxpanoff commented 2 years ago

Pynq has a different interface than the zybo. load_config.py flashes the fpga and writes memory locations to ip_addr.config. This must done through sudo/root with python3. The motor controller script must be run as root user (sudo su) with both setup.bash files (ros, project) sourced, as the underlying libraries check the userid number, and needs certain environmental variables set, which do not persist through sudo calls. This is very messy for obvious reasons, but as pynq is built for python3 and ros melodic for python2 combining them will likely always be difficult.