Hello,
We are looking for some help getting our Romis working with robotpy.
Ultimately we want to use them for a zero-auto tutorial, but for now, we would settle for just being able to get them to move.
We have code working in the simulator, but we cannot get it to drive the Romi. Here is what we tried
- Writing our own basic code and changing the end of the file to match the example…
if __name__ == "__main__":
# If your ROMI isn't at the default address, set that here
os.environ["HALSIMWS_HOST"] = "10.0.0.2"
os.environ["HALSIMWS_PORT"] = "3300"
wpilib.run(MyRobot)
The robot code still runs as expected in the simulator, but the Romi does not move.
Then, we tried to run the example itself located here
When we try that, we get the following error…
Traceback (most recent call last):
File "/home/lekofraggle/commands-v2/romi/robot.py", line 41, in <module>
from robotcontainer import RobotContainer
File "/home/lekofraggle/commands-v2/romi/robotcontainer.py", line 10, in <module>
import romi
So, we tried to install the romi module, but that is where we ran into issues.
when trying…
pip3 install robotpy[romi]
it cannot find the module.
When trying the old way…
pip3 install robotpy-romi
It installs the module, but the old one, and it uninstalls many of the current modules due to them being incompatible.
So, we are a bit at a loss. Does anyone have a step-by step install for the robotpy and Romi?
Thank you for all the work you all have done on robotpy. It is really looking good.
~R^2