관리 메뉴

Value Creator의 IT(프로그래밍 / 전자제품)

ROS2 필수 소프트웨어 설치 본문

1. 프로그래밍/7) 리눅스 우분투

ROS2 필수 소프트웨어 설치

valuecreatort 2021. 9. 9. 15:26
반응형

sudo apt update && sudo apt install -y \
> build-essential \
> cmake \
> git \
> libbullet-dev \
> python3-colcon-common-extensions \
> python3-flake8 \
> python3-pip \
> python3-pytest-cov \
> python3-rosdep \
> python3-setuptools \
> python3-vcstool \
> wget

 

 

python3 -m pip install -U \
> argcomplete \
> flake8-blind-except \
> flake8-builtins \
> flake8-class-newline \
> flake8-comprehensions \
> flake8-deprecated \
> flake8-docstrings \
> flake8-import-order \
> flake8-quotes \
> pytest-repeat \
> pytest-rerunfailures \
> pytest

 

'>'는 생략하고 입력한다.

 

 

you should input

soruce /opt/ros/galactic/setup.bash    <- in the sudo gedit ~/.bashrc

 

 

gedit ~/.bashrc

 

alias cw='cd ~/robos_ws'
alias cs='cd ~/robot_ws/src'
alias ccd='colcon_cd'
alias cb='cd ~/robot_ws && colcon build --symlink-install'
alias cbs='colcon build --symlink-install'
alias cbu='colcon build --symlink-install --packages-select'
alias ct='colcon test'
alias ctp='colcon test --packages-select'
alias ctr='colcon test-result'

alias rt='ros2 topic list'
alias re='ros2 topic echo'
alias rn='ros2 node list'

alias killgazebo='killall -9 gazebo & killall -9 gzserver & killall -9 gzclient'

alias af='ament_flake8'
alias ac='ament_cpplint'

alias testpub='ros2 run demo_nodes_cpp talker'
alias testsub='ros2 run demo_nodes_cpp listener'
alias testpubimg='ros2 run image_tools cam2image'
alias testsubimg='ros2 run image_tools showimage'

 

 

반응형
Comments