I am trying to create a robot that physically interacts with a custom object detection model.
Using jetson-inference I have created a working custom object detection model and am able to access the xy coordinates for the location of objects detected in the camera, whilst in the container.
My problem concerns controlling servos and stepper motors. I am able to utilise python servo motor control libraries outside of the container, but when I try doing this inside the container, it comes back with:
ModuleNotFoundError: No module named ‘Jetson.GPIO’
How can I make it so that Jetson.GPIO and other libraries are included in the container? Or is it easier to try running object detection outside the container now that I have the model I want?
Due to some access limitations in docker, you will need to hardcode the device-tree for Nano.
Please check following comment for the detailed workaround:
Could you try if the library works on Jetson (outside of the container) first?
If yes, it should also work within docker but may need some modification.