Skip to content
无人机sim
2025年3月13日 root

config Isaac Sim CMD

shell
nano ~/.bashrc
bash
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
ISAACSIM

Window->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.simulator

install 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 none

config pegasus sim

shell
nano ~/PegasusSimulator/extensions/pegasus.simulator/config/configs.yaml
yaml
px4_default_airframe: iris

run demo

shell
cd ~/PX4-Autopilot
make px4_sitl_default none

cd ~/PegasusSimulator
ISAACSIM_PYTHON examples/1_px4_single_vehicle.py

Last updated: