Work for my MITsdm Masters' Thesis.
For this project, you'll need:
- Ubuntu 22.04 (for compatibility with Isaac Sim)
- Isaac Sim 4.5.0 (Minimum Requirements)
- ROS2 Humble
- Python 3.10
Isaac Sim needs ROS2 Humble. Install ROS2 Humble.
Hint: Add source /opt/ros/humble/setup.bash
to your ~/.bashrc
file for convenience!
Install Isaac Sim BUT rather than unzipping it to ~/isaacsim
, unzip it to the ./isaacsim
directory in this repo. This is so that we can develop Isaac Sim extensions in VSCode!
- Download Isaac Sim Version 4.5.0 (the commands below assume it goes to
~/Downloads
) - In terminal,
cd
to this repo's main directory, for me that iscd ~/Documents/Github/go4robo
, you may have put it elsewhere. - Unzip the downloaded content to this repo's
isaacsim
directory:unzip "~/Downloads/isaac-sim-standalone@4.5.0-rc.36+release.19112.f59b3005.gl.linux-x86_64.release.zip" -d ./isaacsim
- Note: the GO4R extension is already included in
./isaacsim/extUser/go4robo
. The unzip should handle this, but it's probably worth making sue that it is still there after the unzip. - In a terminal, navigate to
./isaacsim
- Run
./post_install.sh
- Run
./isaac-sim.selector.sh
, and set it up with the ROS2 bridge and the default ROS2 Humble workspace, as shown.
After you run the selector once, you can select the "defualt app" setting, and thereafter you can run isaacsim using the command ./isaac-sim.sh
(from within the isaacsim
directory).
You obviously need VSCode for this part, so download that and get it working. Make sure that you can launch it from Terminal using code
, otherwise Isaac Sim will complain.
Then in VSCode:
- Launch VS Code Quick Open (
Ctrl+P
) - Install the Isaac Sim extension with
ext install NVIDIA.isaacsim-vscode-edition
This extension (more information here) is helpful for grabbing snippets of code, debugging, and more!
Finally, in Isaac Sim:
- Go to
Window > Extensions
to bring up the Extensions window - Type "VS" in the search bar and click into the
THIRD PARTY
section - Enable the
VS CODE INTEGRATION
Extension (isaacsim.code_editor.vscode" = { version = "1.0.5" }
). Setting it to "AUTOLOAD" is also a good idea. - Enable the
VSCODE KIT DEBUGGER
Extension ("isaacsim.code_editor.vscode" = { version = "1.0.5" }
). Setting it to "AUTOLOAD" is also a good idea.
Note that this repo comes with the .vscode
files configured so that you can immediately start working with Isaac Sim. To be able to set break points and otherwise easily introspect:
- Open the debugging tab on the left side bar in VSCode
- Use the dropdown to select the debugger labelled
Python: Attach (windows-x86/linux-x86_64)
- Open
isaac_sim/extUser/go4robo/go4robo/go4robo_python/extension.py
- Push the little green play button to start the debugger
- In Isaac Sim's
VSCode Link
extension windo, hitRefresh
The text should show VSCode Debugger Attached
in turquoise. You are now all set to start debugging the extension!
If you did all of the above correctly (especially the Isaac Sim install) correctly, you should be able to install the GO4R extension in Isaac Sim:
- Go to
Window > Extensions
to bring up the Extensions window - Type "GO4R" in the search bar and click into the
THIRD PARTY
section - Enable the
GO4ROBO
Extension ("go4robo" = { version = "1.0.1" }
). Setting it to "AUTOLOAD" is also a good idea.
*Hint: For a shortcut to edit the extension in VSCode, click the tiny VSCode icon in the upper right corner of the extension page.
Note that Python versions for the Conda env, Blender, and ROS2 might not match!
Install Conda locally, navigate to this directory, and run:
conda env create --name blenv --file conda_env.yml
Note to self: to export the conda environment, activate it and then run: conda env export --file conda_env.yml --no-builds
Install Blender (Version 4.3.2) via the website.
Then point Blender to the Conda Environment using these steps:
1. In Blender’s installation folder, rename the “python” directory (e.g., to “python_backup”).
2. Navigate to Blender’s installation folder and link the Conda environment to "python". On Linux/Mac the command is: ln -s python /Users/robosquiggles/miniforge3/envs/blenv
Install ROS2 Jazzy. Be careful here becuase
I followed this YouTube tutorial by CG Python to get VSCode set up with Blender.