Installation of NXP Gazebo
Guide to install setup for NXP AIM CUP CHALLENGE.
Notice
It is advised to have a steady internet collection and system to be plugged onto power as installation and setting up the setup will take a long time to finish. System requirements (recommended): 2 GHz dual core processor 4GB memory, 25GB available disk space USB Port.
Setting up NXP AIM simulation Software
To use NXP Gazebo, you will need to have a GitHub account. The installation scripts require a GitHub account with an SSH key.
Setting up SSH keys
To create an SSH key, run the following in a terminal:
Follow the prompt. We suggest just pressing enter until you reach the end. It will be easier if you just use the default path for the id_rsa file and if you go without a passphrase (though you're welcome to use one!). You should get the output below. Note that the RSA key is not shown here for security reasons:
Next, you'll want to install xclip
. This program will allow you to copy the contents of the id_rsa.pub file to your clipboard so you can paste it into GitHub. To install xclip
, run the following command:
Once you've installed xclip, you need to copy the id_rsa.pub file to your clipboard. To do so, run the following command:
Adding your SSH key to Github
Now, log into your GitHub account and paste your SSH key. The SSH key field is located in your account settings under "SSH and GPG keys". Add a new SSH key by pressing "New SSH key" and pasting your SSH key in the box. Make sure to give it a name!
Once you've done this, you are ready to begin the installation.
Installing ROS2
To run NXP Gazebo, you must have ROS2 installed. This is an easy process - just run the following script:
Now, we will need to run the foxy_install_aim.sh
file to set up our software. To start, run the following commands:
Note: This command will take a long time to finish since it is installing ROS2. It will show that it successfully installed by printing DONE
once the script finishes.
And then source your .bashrc
by running the following command:
Installing NXP Gazebo
Cloning and running sim_gazebo_bringup
Installing NXP Gazebo has become much easier over time. With this new install process, you'll be up and running with NXP Gazebo in record time!
First, we need to create a ROS2 workspace directory to store the installation files. Go to your home folder and create a new folder called "ros2ws", and a folder inside of that called "src":
Once you are in the directory ~/ros2ws/src
, it's time to clone the bringup repo. The bringup repo contains code that sets up the workspace for you automatically. To clone it, run the following command:
When git prompts you to continue connecting with your RSA fingerprint, type yes:
Next, we are going to run sim_gazebo_bringup
. To do this, run the following commands:
Now that we have the bringup package set up, we can start installing all of the NXP Gazebo packages. Run the following command:
After running the above command you will be asked to run few commands a shown in the image. Copy them and run them before moving to next step of installation
You've now installed NXP Gazebo! You can now move on to the next sections to continue.
Last updated