Hello,
This is our first year using a command-based project and using GRIP vision processing. We have made a grip project and have worked with the command-based project with success. Now we are faced with the problem of how we are supposed to implement the GRIP code that we have generated. We are able to send a camera feed to the driver station using the StartAutomaticCapture() function in our camera subsystem. We tried to make the grip pipeline a command with the .cpp and the .h file provided in the generated code. We also tried to make a grip pipeline object and call the .Process() method by passing in a matrix generated by GrabFrame(). This compiles but causes the error: “device or resource busy” and sometimes we would lose robot code altogether. What is a method we can use to implement our grip pipeline into our code?
Here is a link to our code:
Thanks