Advertisement
Guest User

ros2 install

a guest
Mar 1st, 2022
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.45 KB | None | 0 0
  1. # System Xubuntu 14.04.4 LTS
  2. # Architecture x86/amd64
  3. # install system dependencies
  4. # not sure if this list is complete
  5. # some packages were already there
  6. sudo apt update && sudo apt install -y \
  7.   build-essential \
  8.   cmake \
  9.   git \
  10.   libbullet-dev \
  11.   wget \
  12.   libasio-dev \
  13.   libtinyxml2-dev \
  14.   libeigen3-dev
  15.  
  16. # make build environment
  17. mkdir code_ros2
  18. cd code_ros2
  19. mkdir src
  20. mkdir build
  21. mkdir install
  22. mkdir src/ros2
  23.  
  24. # create and activate virtuelenv
  25. virtualenv -p python3 venv
  26. . venv/bin/activate
  27. pip install --upgrade setuptools pip
  28. pip install vcstool colcon-common-extensions lark-parser numpy
  29.  
  30. # install ros
  31. cd src/ros2
  32.  
  33. wget https://raw.githubusercontent.com/ros2/ros2/foxy/ros2.repos
  34. vcs import . < ros2.repos
  35. #full build
  36. #colcon build --install-base ../../install/ros2 --build-base ../../build/ros2  --packages-ignore intra_process_demo image_tools
  37. #minimal build
  38. colcon --log-base ../../build/ros2/log/ build --install-base ../../install/ros2 --build-base ../../build/ros2   --packages-up-to demo_nodes_py
  39.  
  40. echo "## Checking node location of demo listener##"
  41. listener_buggy_location="../../install/ros2/demo_nodes_py/bin/listener"
  42. listener_expected_location="../../install/ros2/demo_nodes_py/lib/demo_nodes_py/listener"
  43. if test -f "$listener_buggy_location"; then
  44.   echo "ERROR: node in bin folder:"
  45.   echo $listener_buggy_location
  46. fi
  47. if test -f "$listener_expected_location"; then
  48.   echo "SUCCESS: node in lib folder"
  49. fi
  50.  
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement