├── README.md ├── indigo ├── install_ros_and_tools_indigo.sh └── setup_workspace_learning_ros_indigo.sh ├── install_ros_and_tools_noetic.sh ├── kinetic ├── install_ros_and_tools_kinetic.sh └── setup_workspace_learning_ros_kinetic.sh ├── melodic ├── install_ros_and_tools_melodic.sh └── setup_workspace_learning_ros_melodic.sh ├── rosdep.sh └── setup_workspace_learning_ros_noetic.sh /README.md: -------------------------------------------------------------------------------- 1 | ### Learning ROS setup scripts 2 | The scripts here assume that you have an account on github (which is free at github.com). 3 | 4 | You will need "git" installed on your machine to use these scripts. If "git" is not already 5 | installed on your machine, it can be installed with: 6 | `sudo apt-get --yes --force-yes install git` 7 | 8 | --- 9 | 10 | ### Getting the scripts and making them executable 11 | To run these scripts, clone learning_ros_setup_scripts anywhere on your computer by typing the following in any directory: 12 | `git clone https://github.com/wsnewman/learning_ros_setup_scripts.git` 13 | 14 | Once you have the files, change the directory to `learning_ros_setup_scripts` by typing: 15 | `cd learning_ros_setup_scripts` 16 | 17 | After this, make the scripts executable by typing: 18 | `chmod +x *.sh` 19 | 20 | ### ROS Setup 21 | For ROS Melodic use this line: (System needs to be 18.04) 22 | `./install_ros_and_tools_melodic.sh` 23 | (or `bash install_ros_and_tools_melodic.sh`) 24 | 25 | For other versions of install script, please refer to the respective folders for the install scripts. 26 | 27 | ### Workstation Setup 28 | To setup your ROS workspace for ROS Melodic, use the `setup_workspace_learning_ros_melodic.sh` script. You will need to pass your 29 | github username and email as arguments to the script: 30 | `./setup_workspace_learning_ros_melodic.sh github_username github@email.com` 31 | (or `bash setup_workspace_learning_ros_melodic.sh github_username github@email.com`) 32 | where github_username is your username on github, and github@email.com is your e-mail address associated with your 33 | github account. 34 | 35 | ### Setting up STDR simulation for ROS Noetic 36 | 37 | First install qt4 and make it default 38 | ``` 39 | sudo add-apt-repository ppa:rock-core/qt4 40 | sudo apt-get update 41 | sudo apt-get install libqtcore4 qt4-qmake libqt4-dev 42 | export QT_SELECT=4 43 | ``` 44 | make sure it is the active environment by running 45 | ```qtchooser -print-env``` 46 | then install the map_server 47 | ```sudo apt install ros-noetic-map-server``` 48 | Then clone and compile the stdr_simulator package 49 | ``` 50 | cd ~/ros_ws/src 51 | git clone https://github.com/stdr-simulator-ros-pkg/stdr_simulator.git 52 | cd .. 53 | rosdep install --from-paths src --ignore-src --rosdistro noetic 54 | catkin_make -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 55 | ``` 56 | -------------------------------------------------------------------------------- /indigo/install_ros_and_tools_indigo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Learning ROS 3 | # ROS + Dependencies Installation 4 | # v 0.36 5 | 6 | echo "Beginning ROS Installation" 7 | 8 | echo -e "\e[1m \e[34m >>> Beginning ROS Indigo Installation \e[21m \e[39m" 9 | echo -e "\e[34m >>> Setting up sources.list and keys... \e[39m" 10 | 11 | sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' 12 | sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116 13 | 14 | echo -e "\e[34m >>> ...done\e[39m" 15 | 16 | sudo apt-get update 17 | 18 | echo -e "\e[34m >>> Beginning ros-indigo-desktop-full installation...\e[39m" 19 | 20 | sudo apt-get --yes --force-yes install ros-indigo-desktop-full 21 | 22 | echo -e "\e[34m >>> Setting up rosdep\e[39m" 23 | 24 | sudo rosdep init 25 | rosdep update 26 | 27 | echo -e "\e[34m >>> Setting up environment \e[39m" 28 | 29 | echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc 30 | source ~/.bashrc 31 | 32 | echo -e "\e[34m >>> Setting up rosinstall \e[39m" 33 | 34 | sudo apt-get --yes --force-yes install python-rosinstall 35 | 36 | echo -e "\e[1m \e[34m >>> Installing dependencies for mobile robotics code \e[21m \e[39m" 37 | 38 | sudo apt-get --yes --force-yes install ros-indigo-joy ros-indigo-costmap-2d ros-indigo-nav-core ros-indigo-sound-play ros-indigo-amcl ros-indigo-slam-gmapping ros-indigo-move-base ros-indigo-controller-interface ros-indigo-gazebo-ros-control ros-indigo-joint-state-controller ros-indigo-effort-controllers ros-indigo-moveit-msgs ros-indigo-stdr-simulator ros-indigo-teleop-twist-keyboard ros-indigo-slam-gmapping ros-indigo-map-server 39 | sudo apt-get --yes --force-yes install ros-indigo-baxter-core-msgs ros-indigo-baxter-examples ros-indigo-baxter-sim-controllers ros-indigo-baxter-sim-examples ros-indigo-baxter-tools ros-indigo-baxter-description ros-indigo-baxter-sim-hardware ros-indigo-baxter-interface ros-indigo-baxter-simulator ros-indigo-baxter-common ros-indigo-baxter-sdk ros-indigo-baxter-sim-io ros-indigo-baxter-gazebo ros-indigo-baxter-moveit-config 40 | sudo apt-get --yes --force-yes install ros-indigo-ur-description ros-indigo-ur-gazebo 41 | 42 | echo -e "\e[1m \e[34m >>> Installing support software \e[21m \e[39m" 43 | 44 | sudo apt-get --yes --force-yes install git 45 | sudo add-apt-repository -y ppa:webupd8team/sublime-text-3 46 | sudo apt-get update 47 | sudo apt-get --yes --force-yes install sublime-text-installer 48 | 49 | sudo apt-get --yes --force-yes install netbeans 50 | sudo apt-get --yes --force-yes install gitk git-gui 51 | sudo apt-get --yes --force-yes install kazam vlc 52 | 53 | source ~/.bashrc 54 | -------------------------------------------------------------------------------- /indigo/setup_workspace_learning_ros_indigo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Learning ROS - Workspace setup script 3 | # v 0.26 4 | # Wyatt Newman and Luc Bettaieb 5 | 6 | echo "Setting up workspace." 7 | 8 | USERNAME=$1 9 | EMAIL=$2 10 | 11 | if [ "$USERNAME" != "" ] || [ "$EMAIL" != "" ]; 12 | then 13 | source /opt/ros/indigo/setup.bash 14 | echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc 15 | rosdep update 16 | 17 | mkdir -p ~/ros_ws/src 18 | 19 | cd ~/ros_ws/src && catkin_init_workspace 20 | cd ~/ros_ws && catkin_make 21 | 22 | git config --global user.name "$USERNAME" 23 | git config --global user.email "$EMAIL" 24 | 25 | cd ~/ros_ws/src && git clone https://github.com/wsnewman/learning_ros_external_packages.git 26 | cd ~/ros_ws/src && git clone https://github.com/wsnewman/learning_ros.git 27 | 28 | # Cloning STDR is only necessary because of a bug in the current ROS binary release 29 | # This prevents spawning a new robot on the screen. See this bug report for more information: 30 | # https://github.com/stdr-simulator-ros-pkg/stdr_simulator/issues/195 31 | 32 | cd ~/ros_ws/src && git clone https://github.com/stdr-simulator-ros-pkg/stdr_simulator.git 33 | 34 | cd ~/ros_ws && catkin_make 35 | cd ~/ros_ws && catkin_make install 36 | 37 | echo "source ~/ros_ws/devel/setup.bash" >> ~/.bashrc 38 | echo "alias cs_create_pkg='~/ros_ws/src/learning_ros_external_packages/cs_create_pkg.py'" >> ~/.bashrc 39 | echo "export ROS_WORKSPACE='$HOME/ros_ws'" >> ~/.bashrc 40 | 41 | source ~/.bashrc 42 | 43 | else 44 | echo "USAGE: ./setup_workspace_learning_ros your_github_username your_email@email.com" 45 | 46 | fi 47 | 48 | echo "[!!!] NB: You must still manually add your ROS_IP to your ~/.bashrc. Do this by checking your IP with hostname -I or ifconfig and then adding export ROS_IP='x.x.x.x' to your ~/.bashrc." 49 | -------------------------------------------------------------------------------- /install_ros_and_tools_noetic.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Learning ROS 3 | # ROS + Dependencies Installation 4 | # v 0.50 5 | # Wyatt Newman and Luc Bettaieb 6 | # Updated by Frank (Chude Qian) 7 | 8 | echo "Beginning ROS Installation" 9 | 10 | echo -e "\e[1m \e[34m >>> Beginning ROS noetic Installation \e[21m \e[39m" 11 | echo -e "\e[34m >>> Setting up sources.list and keys... \e[39m" 12 | 13 | sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' 14 | sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 15 | 16 | echo -e "\e[34m >>> ...done\e[39m" 17 | 18 | sudo apt-get update && sudo apt-get upgrade -y 19 | 20 | echo -e "\e[34m >>> Beginning ros-noetic-desktop-full installation...\e[39m" 21 | 22 | sudo apt-get install -y ros-noetic-desktop-full 23 | 24 | echo -e "\e[34m >>> Setting up environment \e[39m" 25 | 26 | echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc 27 | source ~/.bashrc 28 | 29 | echo -e "\e[34m >>> Setting up rosinstall \e[39m" 30 | 31 | sudo apt install -y \ 32 | python3-rosdep \ 33 | python3-rosinstall \ 34 | python3-rosinstall-generator \ 35 | python3-wstool \ 36 | build-essential 37 | 38 | echo -e "\e[34m >>> Setting up rosdep\e[39m" 39 | 40 | sudo rosdep init 41 | rosdep update 42 | 43 | echo -e "\e[1m \e[34m >>> Installing dependencies for mobile robotics code \e[21m \e[39m" 44 | 45 | sudo apt-get update && apt-get install -y ros-noetic-joy ros-noetic-costmap-2d ros-noetic-nav-core ros-noetic-sound-play ros-noetic-amcl \ 46 | ros-noetic-slam-gmapping ros-noetic-move-base ros-noetic-controller-interface ros-noetic-gazebo-ros-control ros-noetic-joint-state-controller \ 47 | ros-noetic-effort-controllers ros-noetic-moveit-msgs ros-noetic-teleop-twist-keyboard ros-noetic-slam-gmapping ros-noetic-map-server ros-noetic-qt-gui \ 48 | ros-noetic-kdl-parser ros-noetic-combined-robot-hw ros-noetic-combined-robot-hw-tests ros-noetic-controller-manager ros-noetic-diff-drive-controller \ 49 | ros-noetic-force-torque-sensor-controller ros-noetic-gripper-action-controller ros-noetic-imu-sensor-controller ros-noetic-position-controllers \ 50 | ros-noetic-ros-control ros-noetic-ros-controllers ros-noetic-rqt-joint-trajectory-controller ros-noetic-velocity-controllers ros-noetic-cv-bridge \ 51 | ros-noetic-polled-camera ros-noetic-camera-info-manager ros-noetic-tf-conversions ros-noetic-opencv-apps libopencv-dev ros-noetic-rqt \ 52 | ros-noetic-rqt-common-plugins ros-noetic-ur-client-library 53 | 54 | ## Obsolete Packages: 55 | ## ros-melodic-controller-manager-tests ros-kinetic-ur-description ros-kinetic-ur-gazebo ros-kinetic-stdr-simulator 56 | 57 | echo -e "\e[1m \e[34m >>> Installing support software \e[21m \e[39m" 58 | 59 | sudo apt-get install -y git vlc obs-studio vim gitk git-gui 60 | sudo snap install code --classic 61 | source ~/.bashrc 62 | -------------------------------------------------------------------------------- /kinetic/install_ros_and_tools_kinetic.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Learning ROS 3 | # ROS + Dependencies Installation 4 | # v 0.36 5 | 6 | echo "Beginning ROS Installation" 7 | 8 | echo -e "\e[1m \e[34m >>> Beginning ROS Kinetic Installation \e[21m \e[39m" 9 | echo -e "\e[34m >>> Setting up sources.list and keys... \e[39m" 10 | 11 | sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' 12 | sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116 13 | 14 | echo -e "\e[34m >>> ...done\e[39m" 15 | 16 | sudo apt-get update 17 | 18 | echo -e "\e[34m >>> Beginning ros-kinetic-desktop-full installation...\e[39m" 19 | 20 | sudo apt-get --yes --force-yes install ros-kinetic-desktop-full 21 | 22 | echo -e "\e[34m >>> Setting up rosdep\e[39m" 23 | 24 | sudo rosdep init 25 | rosdep update 26 | 27 | echo -e "\e[34m >>> Setting up environment \e[39m" 28 | 29 | echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc 30 | source ~/.bashrc 31 | 32 | echo -e "\e[34m >>> Setting up rosinstall \e[39m" 33 | 34 | sudo apt-get --yes --force-yes install python-rosinstall 35 | 36 | echo -e "\e[1m \e[34m >>> Installing dependencies for mobile robotics code \e[21m \e[39m" 37 | 38 | sudo apt-get --yes --force-yes install ros-kinetic-joy ros-kinetic-costmap-2d ros-kinetic-nav-core ros-kinetic-sound-play ros-kinetic-amcl ros-kinetic-slam-gmapping ros-kinetic-move-base ros-kinetic-controller-interface ros-kinetic-gazebo-ros-control ros-kinetic-joint-state-controller ros-kinetic-effort-controllers ros-kinetic-moveit-msgs ros-kinetic-stdr-simulator ros-kinetic-teleop-twist-keyboard ros-kinetic-slam-gmapping ros-kinetic-map-server ros-kinetic-qt-build ros-kinetic-kdl-parser ros-kinetic-combined-robot-hw ros-kinetic-combined-robot-hw-tests ros-kinetic-controller-manager-tests ros-kinetic-diff-drive-controller ros-kinetic-force-torque-sensor-controller ros-kinetic-gripper-action-controller ros-kinetic-imu-sensor-controller ros-kinetic-position-controllers ros-kinetic-ros-control ros-kinetic-ros-controllers ros-kinetic-rqt-joint-trajectory-controller ros-kinetic-velocity-controllers 39 | sudo apt-get --yes --force-yes install ros-kinetic-cv-bridge ros-kinetic-polled-camera ros-kinetic-camera-info-manager ros-kinetic-tf-conversions 40 | sudo apt-get --yes --force-yes install ros-kinetic-opencv3 libopencv-dev 41 | 42 | sudo apt-get --yes --force-yes install ros-kinetic-ur-description ros-kinetic-ur-gazebo 43 | 44 | echo -e "\e[1m \e[34m >>> Installing support software \e[21m \e[39m" 45 | 46 | sudo apt-get --yes --force-yes install git 47 | sudo add-apt-repository -y ppa:webupd8team/sublime-text-3 48 | sudo apt-get update 49 | sudo apt-get --yes --force-yes install sublime-text-installer 50 | 51 | sudo apt-get --yes --echo -e "\e[34m >>> Setting up rosinstall \e[39m" 52 | 53 | sudo apt-get --yes --force-yes install python-rosinstall install netbeans 54 | sudo apt-get --yes --force-yes install gitk git-gui 55 | sudo apt-get --yes --force-yes install kazam vlc 56 | 57 | 58 | echo -e "\e[1m \e[34m >>> Installing rqt \e[21m \e[39m" 59 | sudo apt-get --yes install ros-kinetic-rqt 60 | sudo apt-get --yes install ros-kinetic-rqt-common-plugins 61 | 62 | source ~/.bashrc 63 | 64 | source ~/ros_ws/devel/setup.bash 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /kinetic/setup_workspace_learning_ros_kinetic.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Learning ROS - Workspace setup script 3 | # v 0.26 4 | # Wyatt Newman and Luc Bettaieb 5 | 6 | echo "Setting up workspace." 7 | 8 | USERNAME=$1 9 | EMAIL=$2 10 | 11 | if [ "$USERNAME" != "" ] || [ "$EMAIL" != "" ]; 12 | then 13 | source /opt/ros/kinetic/setup.bash 14 | echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc 15 | rosdep update 16 | 17 | mkdir -p ~/ros_ws/src 18 | 19 | cd ~/ros_ws/src && catkin_init_workspace 20 | cd ~/ros_ws && catkin_make 21 | 22 | git config --global user.name "$USERNAME" 23 | git config --global user.email "$EMAIL" 24 | #https://github.com/wsnewman/learning_ros_kinetic.git 25 | #https://github.com/wsnewman/learning_ros_external_packages_kinetic.git 26 | cd ~/ros_ws/src && git clone https://github.com/wsnewman/learning_ros_kinetic.git 27 | cd ~/ros_ws/src && git clone https://github.com/wsnewman/learning_ros_external_pkgs_kinetic.git 28 | 29 | # Cloning STDR is only necessary because of a bug in the current ROS binary release 30 | # This prevents spawning a new robot on the screen. See this bug report for more information: 31 | # https://github.com/stdr-simulator-ros-pkg/stdr_simulator/issues/195 32 | 33 | # cd ~/ros_ws/src && git clone https://github.com/stdr-simulator-ros-pkg/stdr_simulator.git 34 | 35 | echo "source ~/ros_ws/devel/setup.bash" >> ~/.bashrc 36 | source ~/.bashrc 37 | 38 | cd ~/ros_ws && catkin_make 39 | cd ~/ros_ws && catkin_make install 40 | 41 | 42 | echo "alias cs_create_pkg='~/ros_ws/src/learning_ros_external_pkgs_kinetic/cs_create_pkg.py'" >> ~/.bashrc 43 | echo "source ~/ros_ws/devel/setup.bash" >> ~/.bashrc 44 | echo "export ROS_WORKSPACE='$HOME/ros_ws'" >> ~/.bashrc 45 | # echo "export ROS_IP=`ifconfig eth0 2>/dev/null|awk '/inet addr:/ {print $2}'|sed 's/addr://'`" >> ~/.bashrc 46 | 47 | 48 | 49 | else 50 | echo "USAGE: ./setup_workspace_learning_ros your_github_username your_email@email.com" 51 | 52 | fi 53 | 54 | echo "[!!!] NB: You must still manually add your ROS_IP to your ~/.bashrc. Do this by checking your IP with hostname -I or ifconfig and then adding export ROS_IP='x.x.x.x' to your ~/.bashrc." 55 | -------------------------------------------------------------------------------- /melodic/install_ros_and_tools_melodic.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Learning ROS 3 | # ROS + Dependencies Installation 4 | # v 0.40 5 | # Wyatt Newman and Luc Bettaieb 6 | # Updated by Frank (Chude Qian) 7 | 8 | echo "Beginning ROS Installation" 9 | 10 | echo -e "\e[1m \e[34m >>> Beginning ROS Melodic Installation \e[21m \e[39m" 11 | echo -e "\e[34m >>> Setting up sources.list and keys... \e[39m" 12 | 13 | sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' 14 | sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 15 | 16 | echo -e "\e[34m >>> ...done\e[39m" 17 | 18 | sudo apt-get update && sudo apt-get --yes --force-yes upgrade 19 | 20 | echo -e "\e[34m >>> Beginning ros-melodic-desktop-full installation...\e[39m" 21 | 22 | sudo apt-get --yes --force-yes install ros-melodic-desktop-full 23 | 24 | echo -e "\e[34m >>> Setting up rosdep\e[39m" 25 | 26 | sudo rosdep init 27 | rosdep update 28 | 29 | echo -e "\e[34m >>> Setting up environment \e[39m" 30 | 31 | echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc 32 | source ~/.bashrc 33 | 34 | echo -e "\e[34m >>> Setting up rosinstall \e[39m" 35 | 36 | sudo apt-get --yes --force-yes install python-rosinstall 37 | 38 | echo -e "\e[1m \e[34m >>> Installing dependencies for mobile robotics code \e[21m \e[39m" 39 | 40 | sudo apt-get --yes --force-yes install ros-melodic-joy ros-melodic-costmap-2d ros-melodic-nav-core ros-melodic-sound-play ros-melodic-amcl ros-melodic-slam-gmapping ros-melodic-move-base ros-melodic-controller-interface ros-melodic-gazebo-ros-control ros-melodic-joint-state-controller ros-melodic-effort-controllers ros-melodic-moveit-msgs ros-melodic-teleop-twist-keyboard ros-melodic-slam-gmapping ros-melodic-map-server ros-melodic-qt-gui ros-melodic-kdl-parser ros-melodic-combined-robot-hw ros-melodic-combined-robot-hw-tests ros-melodic-controller-manager-tests ros-melodic-diff-drive-controller ros-melodic-force-torque-sensor-controller ros-melodic-gripper-action-controller ros-melodic-imu-sensor-controller ros-melodic-position-controllers ros-melodic-ros-control ros-melodic-ros-controllers ros-melodic-rqt-joint-trajectory-controller ros-melodic-velocity-controllers 41 | sudo apt-get --yes --force-yes install ros-melodic-cv-bridge ros-melodic-polled-camera ros-melodic-camera-info-manager ros-melodic-tf-conversions 42 | sudo apt-get --yes --force-yes install ros-melodic-opencv-apps libopencv-dev 43 | sudo apt-get --yes install ros-melodic-rqt 44 | sudo apt-get --yes install ros-melodic-rqt-common-plugins 45 | 46 | ## Obsolete Packages: 47 | ## ros-kinetic-ur-description ros-kinetic-ur-gazebo ros-kinetic-stdr-simulator 48 | 49 | echo -e "\e[1m \e[34m >>> Installing support software \e[21m \e[39m" 50 | 51 | sudo apt-get --yes --force-yes install git 52 | sudo add-apt-repository -y ppa:webupd8team/sublime-text-3 53 | sudo apt-get update 54 | sudo apt-get --yes --force-yes install sublime-text-installer 55 | 56 | ## Addition for 2019: Added VS code, OBS capture software 57 | sudo apt install --yes --force-yes software-properties-common apt-transport-https wget 58 | wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add - 59 | sudo add-apt-repository -y "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" 60 | sudo apt update 61 | sudo apt install --yes --force-yes code 62 | 63 | sudo add-apt-repository -y ppa:obsproject/obs-studio 64 | sudo add-apt-repository -y ppa:kirillshkrogalev/ffmpeg-next 65 | sudo apt-get update 66 | sudo apt-get install --yes --force-yes obs-studio 67 | 68 | 69 | sudo apt-get --yes --echo -e "\e[34m >>> Setting up rosinstall \e[39m" 70 | 71 | sudo apt-get --yes --force-yes install python-rosinstall install netbeans 72 | sudo apt-get --yes --force-yes install gitk git-gui 73 | sudo apt-get --yes --force-yes install kazam vlc 74 | sudo apt-get --yes --force-yes install vim 75 | 76 | source ~/.bashrc 77 | 78 | source ~/ros_ws/devel/setup.bash 79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /melodic/setup_workspace_learning_ros_melodic.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Learning ROS - Workspace setup script 3 | # v 0.40 4 | # Wyatt Newman and Luc Bettaieb 5 | # Updated by Frank (Chude Qian) 6 | 7 | echo "Setting up workspace." 8 | 9 | USERNAME=$1 10 | EMAIL=$2 11 | 12 | if [ "$USERNAME" != "" ] || [ "$EMAIL" != "" ]; 13 | then 14 | source /opt/ros/melodic/setup.bash 15 | echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc 16 | rosdep update 17 | 18 | mkdir -p ~/ros_ws/src 19 | 20 | cd ~/ros_ws/src && catkin_init_workspace 21 | cd ~/ros_ws && catkin_make 22 | 23 | git config --global user.name "$USERNAME" 24 | git config --global user.email "$EMAIL" 25 | 26 | #https://github.com/wsnewman/learning_ros_kinetic.git 27 | #https://github.com/wsnewman/learning_ros_external_packages_kinetic.git 28 | #cd ~/ros_ws/src && git clone https://github.com/wsnewman/learning_ros_kinetic.git 29 | #cd ~/ros_ws/src && git clone https://github.com/wsnewman/learning_ros_external_pkgs_kinetic.git 30 | 31 | # Cloning STDR is only necessary because of a bug in the current ROS binary release 32 | # This prevents spawning a new robot on the screen. See this bug report for more information: 33 | # https://github.com/stdr-simulator-ros-pkg/stdr_simulator/issues/195 34 | 35 | # cd ~/ros_ws/src && git clone https://github.com/stdr-simulator-ros-pkg/stdr_simulator.git 36 | 37 | echo "source ~/ros_ws/devel/setup.bash" >> ~/.bashrc 38 | source ~/.bashrc 39 | 40 | cd ~/ros_ws && catkin_make 41 | cd ~/ros_ws && catkin_make install 42 | 43 | 44 | echo "alias cs_create_pkg='~/ros_ws/src/learning_ros_external_pkgs_kinetic/cs_create_pkg.py'" >> ~/.bashrc 45 | echo "source ~/ros_ws/devel/setup.bash" >> ~/.bashrc 46 | echo "export ROS_WORKSPACE='$HOME/ros_ws'" >> ~/.bashrc 47 | # echo "export ROS_IP=`ifconfig eth0 2>/dev/null|awk '/inet addr:/ {print $2}'|sed 's/addr://'`" >> ~/.bashrc 48 | 49 | 50 | 51 | else 52 | echo "USAGE: ./setup_workspace_learning_ros your_github_username your_email@email.com" 53 | 54 | fi 55 | 56 | echo "[!!!] NB: You must still manually add your ROS_IP to your ~/.bashrc. Do this by checking your IP with hostname -I or ifconfig and then adding export ROS_IP='x.x.x.x' to your ~/.bashrc." 57 | -------------------------------------------------------------------------------- /rosdep.sh: -------------------------------------------------------------------------------- 1 | # broken: ros-noetic-controller-manager-tests 2 | -------------------------------------------------------------------------------- /setup_workspace_learning_ros_noetic.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Learning ROS - Workspace setup script 3 | # v 0.40 4 | # Wyatt Newman and Luc Bettaieb 5 | # Updated by Frank (Chude Qian) 6 | 7 | echo "Setting up workspace." 8 | 9 | USERNAME=$1 10 | EMAIL=$2 11 | 12 | if [ "$USERNAME" != "" ] || [ "$EMAIL" != "" ]; 13 | then 14 | source /opt/ros/noetic/setup.bash 15 | # echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc 16 | rosdep update 17 | 18 | ROS_BASE=~/ros/noetic/ros_ws 19 | mkdir -p $ROS_BASE/src 20 | 21 | cd $ROS_BASE/src && catkin_init_workspace 22 | cd $ROS_BASE && catkin_make 23 | 24 | git config --global user.name "$USERNAME" 25 | git config --global user.email "$EMAIL" 26 | 27 | # Cloning STDR is necessary for noetic and bug in the current ROS binary release 28 | # https://github.com/stdr-simulator-ros-pkg/stdr_simulator/issues/195 29 | 30 | cd $ROS_BASE/src 31 | git clone https://github.com/rojas70/stdr_simulator.git 32 | 33 | # Change to the noetic-devel branch 34 | git checkout noetic-devel 35 | 36 | echo "source ~/ros/noetic/ros_ws/devel/setup.bash" >> ~/.bashrc 37 | source ~/.bashrc 38 | 39 | cd ~/$ROS_BASE && catkin_make 40 | cd ~/$ROS_BASE && catkin_make install 41 | 42 | 43 | echo "alias cs_create_pkg='~/ros/noetic/ros_ws/src/learning_ros_external_pkgs_noetic/cs_create_pkg.py'" >> ~/.bashrc 44 | echo "source ~/ros_ws/devel/setup.bash" >> ~/.bashrc 45 | echo "export ROS_WORKSPACE='$HOME/ros_ws'" >> ~/.bashrc 46 | # echo "export ROS_IP=`ifconfig eth0 2>/dev/null|awk '/inet addr:/ {print $2}'|sed 's/addr://'`" >> ~/.bashrc 47 | 48 | else 49 | echo "USAGE: ./setup_workspace_learning_ros your_github_username your_email@email.com" 50 | 51 | fi 52 | 53 | #echo "[!!!] NB: You must still manually add your ROS_IP to your ~/.bashrc. Do this by checking your IP with hostname -I or ifconfig and then adding export ROS_IP='x.x.x.x' to your ~/.bashrc." 54 | --------------------------------------------------------------------------------