Fatal runtime error with navigator-lib examples

I am trying to use the examples from the navigator library. I put the Navigator in simulation mode through blue OS, and followed the instructions to compile and run the ‘simple.cpp’ example but I get the following error:

I went into lib.rs to see what the error was and it appears to be upset with the I2cdev file. I have little experience with rust, and I am trying to trace back into the I2cdev folder to see what the issue could be but I can’t figure it out. Here’s a screenshot of that code:

In another forum post I learned the issue could be the Raspberry Pi image that was loaded, but I used the command ‘uname -a’ in the BlueOS terminal and got back the following:

Linux blueos 5.10.33-v71+ #1415 SMP Fri Apr 30 15:50:57 BST 2021 armv71 GNU/Linux

I also tried to run the python example after following the instructions in the READ ME and got the following error:

Any help would be greatly appreciated in solving this issue!

Hey @Margo!

Have you tried the Jupyter Notebook extension on BlueOS? It’s one of the easiest and fastest setups to get started with Navigator libraries.

From the logs you sent, it seems the code was compiled directly on the Precision-7680. When the example runs, it confirms and shows x86_64 hardware.

It should work if you repeat the same steps, but from a terminal inside BlueOS. You can access it through an SSH connection OR the web terminal tab(you need to enable Pirate Mode).

Please let me know if you succeed or need any support.

2 Likes

Thanks, that ended up being the reason! I didn’t realize I had to flash it directly to the raspberry pi in the BlueOS terminal. Everything is working great now :slight_smile: