2seung0708 / ros2_example

1 stars 0 forks source link

setting cmd 모음 #1

Open 2seung0708 opened 2 months ago

2seung0708 commented 2 months ago
locale  # check for UTF-8

sudo apt update  && sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8

locale  # verify settings

sudo apt install software-properties-common -y
sudo add-apt-repository universe

sudo apt update && sudo apt install curl -y
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null

sudo apt update 
sudo apt upgrade -y

sudo apt install ros-foxy-desktop python3-argcomplete -y

sudo apt install python3-colcon-common-extensions
2seung0708 commented 2 months ago
sudo apt-get -y update;
sudo apt-get -y install python3-pip libopenblas-dev;

export TORCH_INSTALL=https://developer.download.nvidia.cn/compute/redist/jp/v511/pytorch/torch-2.0.0+nv23.05-cp38-cp38-linux_aarch64.whl

python3 -m pip install --upgrade pip; python3 -m pip install numpy=='1.26.1'; python3 -m pip install --no-cache $TORCH_INSTALL

sudo apt-get install libjpeg-dev zlib1g-dev libpython3-dev libopenblas-dev libavcodec-dev libavformat-dev libswscale-dev

git clone --branch v0.15.1 https://github.com/pytorch/vision torchvision

cd torchvision

export BUILD_VERSION=0.x.0  # where 0.x.0 is the torchvision version

python3 setup.py install --user