Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # System Xubuntu 14.04.4 LTS
- # Architecture x86/amd64
- # install system dependencies
- # not sure if this list is complete
- # some packages were already there
- sudo apt update && sudo apt install -y \
- build-essential \
- cmake \
- git \
- libbullet-dev \
- wget \
- libasio-dev \
- libtinyxml2-dev \
- libeigen3-dev
- # make build environment
- mkdir code_ros2
- cd code_ros2
- mkdir src
- mkdir build
- mkdir install
- mkdir src/ros2
- # create and activate virtuelenv
- virtualenv -p python3 venv
- . venv/bin/activate
- pip install --upgrade setuptools pip
- pip install vcstool colcon-common-extensions lark-parser numpy
- # install ros
- cd src/ros2
- wget https://raw.githubusercontent.com/ros2/ros2/foxy/ros2.repos
- vcs import . < ros2.repos
- #full build
- #colcon build --install-base ../../install/ros2 --build-base ../../build/ros2 --packages-ignore intra_process_demo image_tools
- #minimal build
- colcon --log-base ../../build/ros2/log/ build --install-base ../../install/ros2 --build-base ../../build/ros2 --packages-up-to demo_nodes_py
- echo "## Checking node location of demo listener##"
- listener_buggy_location="../../install/ros2/demo_nodes_py/bin/listener"
- listener_expected_location="../../install/ros2/demo_nodes_py/lib/demo_nodes_py/listener"
- if test -f "$listener_buggy_location"; then
- echo "ERROR: node in bin folder:"
- echo $listener_buggy_location
- fi
- if test -f "$listener_expected_location"; then
- echo "SUCCESS: node in lib folder"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement