./imaging_tests.sh
python3 -m unittest tests/path-to-test/thingy_test.py
e.g. python3 -m unittest tests/imgaging/integ_tests.py
localhost:6080
and entering the password vscode
you should be able to access a desktop environment through your browser if necessary. python3 setup_image.py
(alternatively run echo "FROM t0mmyn/uavf_2024" > .devcontainer/Dockerfile
to download from a mirrored x86 image)rebuild and reopen in dev container
run_tests.sh
rebuild and reopen in dev container
sim_instructions.md
for instructions on starting and running the simulation.cd into this repo's root directory.
Run:
pip install -e .
cd into the siyi_sdk
submodule and pip install -e .
. If the folder is empty, do git submodule init && git submodule update
Do this AFTER doing pip install -e .
If you do that after, it'll overwrite the jetson-specific packages.
Download the torch 2.1.0 wheel from here https://forums.developer.nvidia.com/t/pytorch-for-jetson/72048 and pip install it (e.g. pip install torch-2.1..0-cp<blahblah>.whl
)
Build torchvision from source.
sudo apt-get install libjpeg-dev zlib1g-dev libpython3-dev libopenblas-dev libavcodec-dev libavformat-dev libswscale-dev
git clone --branch v0.16.1 https://github.com/pytorch/vision torchvision
cd torchvision
export BUILD_VERSION=0.16.1
python3 setup.py install --user
sim_instructions.md
.localhost:6080
in a web browser, then enter password vscode
, then use the menu in the bottom left to open a terminal.xhost +
on your machine.I copied a lot of the config from this tutorial: https://docs.ros.org/en/foxy/How-To-Guides/Setup-ROS-2-with-VSCode-and-Docker-Container.html
(WIP). It's recommended to use the Dockerfile for development.
/home/ws
source install/setup.sh
colcon build --merge-install
ros2 run uavf_2024 imaging_node.py
(this starts the service)ros2 service call /imaging_service uavf_2024/srv/TakePicture
pytorch: https://forums.developer.nvidia.com/t/pytorch-for-jetson/72048 as of jan 23, the jetson is on Jetpack 6
cd /home/forge/ws/logs/bagfiles/rosbag2_2024_06_12-17_23_07 while true; do ros2 bag play rosbag2_2024_06_12-17_23_07.db3; done