![]() |
Cannot create an RGBImage instance
Right now our robot doesn't have a camera on it so we're trying to run a local program with the wpilibj libraries. We're loading an image taken from last year onto the program but we can't get it to do anything. We simplified the code down to just the declaration:
Code:
new RGBImage();Code:
Exception in thread "main" java.lang.ExceptionInInitializerError |
Re: Cannot create an RGBImage instance
This seems to be a problem with the squawk VM not being able to work with the hardware. If I understand your post correctly, you're trying to run this on a computer. The exception says that a string cannot be cast to an address, and it seems that an address has to do with lower level communication to peripherals and some of the primitive data types. The squawk VM is not designed to be run on the computer, so when java tries to allocate some block of memory for your empty image and it uses the address class to access the memory, it fails to do so. Ifyou want to experiment with image pprocessing, you can use vision assistant.
|
| All times are GMT -5. The time now is 10:08. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi