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.
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.