About Virtual Machine

i have downloaded the virtual Box image of Ubuntu 18.04 and used Virtual Box to open the CommonRoadVM of type ‘VirtualBox Machine Definition’, after i logged in the terminal and navigated to the /home/commonroad/repos/commonroad-search and used the command jupyter notebook to launch the Jupyter notebook, i want to make sure that all the nessary modules are installed, and i type into the terminal “pip install commonroad-io”, and then errors appeared! Why could that happen? what should i do? aren’t all the nessary modules already included in the virtual Machine?
After i open the jupyter notebook and try to run the tutorial code for the commonroad-collision-checker, the error “modules are missing” also appear? what should i do? is there something wrong with all the steps i take? should i also download the dependencies manuelly?

and also after i enter the password “commonroad”, there is an ouput called “system program problem detected”? why could that happen?

it is really wierd, because according to the “Guide for Exercise”, the chapter 1.2 Virtual Machine, it is said that all necessary modules are installed, but now in return, I can not even run the toturial for example “collision_checker.ipynb”, because the modules “pcycc” or “commonroad_cc” can not be found…

Hi Jimmy,

You don’t need to install anything in the VM. Just download the image again, open it, run the jupyter notebook command and navigate to notebooks/tutorial_xx.ipynb. the two tutorial notebooks should be running perfectly.

Hey Edmond,

I’m also getting a ModuleNotFound error in the VM (the updated one) when running the motion_primitives_generator notebook. The error is generated for solution_checker and commonroad_cc.

Any ideas why this is the case?
Thanks!

Hi Osharaki,

Just add this to the first cell of that notebook:
sys.path.append("…/…/GSMP/tools/commonroad-collision-checker/")
(the first two segment should have only two dots, no idea why is it displayed as three dots on the forum)
Also, if you want to visualize some of the sample trajectories, you can assign 1 to a variable called num_simulation for better visualization.

Best regards,
Edmond

1 Like