config Isaac Sim CMD
shell
nano ~/.bashrcbash
export ISAACSIM_PATH="/isaac-sim"
alias ISAACSIM_PYTHON="${ISAACSIM_PATH}/python.sh"
alias ISAACSIM="${ISAACSIM_PATH}/runheadless.native.sh -v"install Pegasus Simulator
shell
cd ~
git clone https://github.com/PegasusSimulator/PegasusSimulator.git
ISAACSIMWindow->extensions, open setting, extension search path, add /root/PegasusSimulator/extensions, and then in third party, enable and autoload pegasus.simulator
cd PegasusSimulator/extensions
ISAACSIM_PYTHON -m pip install --editable pegasus.simulatorinstall PX4-Autopilot
shell
cd ~
apt install -y git make cmake python3-pip
pip install kconfiglib jinja2 empy jsonschema pyros-genmsg packaging toml numpy future
git clone https://github.com/PX4/PX4-Autopilot.git
cd PX4-Autopilot
git checkout v1.14.1
git submodule update --init --recursive
make px4_sitl_default noneconfig pegasus sim
shell
nano ~/PegasusSimulator/extensions/pegasus.simulator/config/configs.yamlyaml
px4_default_airframe: irisrun demo
shell
cd ~/PX4-Autopilot
make px4_sitl_default none
cd ~/PegasusSimulator
ISAACSIM_PYTHON examples/1_px4_single_vehicle.py