Difference between revisions of "RoboRacing Software Installation Instructions"
Line 45: | Line 45: | ||
*rosdep will download and install all of the necessary ros package dependencies, type "y" whenever it asks if it is ok to continue installation | *rosdep will download and install all of the necessary ros package dependencies, type "y" whenever it asks if it is ok to continue installation | ||
− | == Step 11 - Build the Code == | + | == Step 11 - Install Python 2 Dependencies == |
+ | *Install python dependencies (for Python 2) which are not in ROS: | ||
+ | <div style="line-height: 20.8px; border: 1px solid rgb(204, 204, 204); padding: 5px 10px; background: rgb(238, 238, 238);"><span style="font-family:courier new,courier,monospace;"> | ||
+ | pip install keras tensorflow numpy pynput matplotlib</span></div> | ||
+ | |||
+ | |||
+ | |||
+ | == Step 12 - Build the Code == | ||
<div style="line-height: 20.8px; border: 1px solid rgb(204, 204, 204); padding: 5px 10px; background: rgb(238, 238, 238);"><span style="font-family:courier new,courier,monospace;">catkin_make</span></div> | <div style="line-height: 20.8px; border: 1px solid rgb(204, 204, 204); padding: 5px 10px; background: rgb(238, 238, 238);"><span style="font-family:courier new,courier,monospace;">catkin_make</span></div> | ||
*If this fails the first time try running catkin_make again | *If this fails the first time try running catkin_make again | ||
*If it continues to fail because it could not find some of the igvc_msgs header files, run "catkin_make igvc_msgs_gencpp" and then "catkin_make" | *If it continues to fail because it could not find some of the igvc_msgs header files, run "catkin_make igvc_msgs_gencpp" and then "catkin_make" | ||
− | == Step | + | == Step 13 - Run the Code == |
<div style="line-height: 20.8px; border: 1px solid rgb(204, 204, 204); padding: 5px 10px; background: rgb(238, 238, 238);">''In a separate terminal ''<span style="font-family:courier new,courier,monospace;">roscore</span></div><div style="line-height: 20.8px; border: 1px solid rgb(204, 204, 204); padding: 5px 10px; background: rgb(238, 238, 238);"><span style="line-height: 20.8px;">''In a terminal that isn't running roscore ''<span style="font-family:courier new,courier,monospace;">roslaunch igvc igvc.launch</span></span></div> | <div style="line-height: 20.8px; border: 1px solid rgb(204, 204, 204); padding: 5px 10px; background: rgb(238, 238, 238);">''In a separate terminal ''<span style="font-family:courier new,courier,monospace;">roscore</span></div><div style="line-height: 20.8px; border: 1px solid rgb(204, 204, 204); padding: 5px 10px; background: rgb(238, 238, 238);"><span style="line-height: 20.8px;">''In a terminal that isn't running roscore ''<span style="font-family:courier new,courier,monospace;">roslaunch igvc igvc.launch</span></span></div> | ||
* The code should now be running and complaining about not being able to connect to various devices, this is all good and you are ready to start writing igvc code | * The code should now be running and complaining about not being able to connect to various devices, this is all good and you are ready to start writing igvc code |
Revision as of 14:51, 2 September 2019
Welcome!
Robojackets RoboRacing currently supports an Ubuntu 18.04 and ROS-melodic environment. The project may build/run in other environments, but we can't guarantee it.
Let's begin the installation process.
Contents
- 1 Step 1 - Get Terminator
- 2 Step 2 - Set up your sources.list
- 3 Step 3 - Set up your keys
- 4 Step 4 - Update your Debian packages
- 5 Step 5 - Get Ros melodic
- 6 Step 6 - Initialize rosdep
- 7 Step 7 - Environment Variable Setup
- 8 Step 8 - Initialize catkin workspace
- 9 Step 9 - Clone RoboRacing Repository
- 10 Step 10 - Install ROS Dependencies
- 11 Step 11 - Install Python 2 Dependencies
- 12 Step 12 - Build the Code
- 13 Step 13 - Run the Code
Step 1 - Get Terminator
We primarily use terminator instead of the default terminal since it allows for both horizontal and vertical splitting (which obviously increases overall productivity). Start up the default terminal and type:
You should now be using this from now on, it will help later.
Step 2 - Set up your sources.list
Now for these next steps you don't need to understand what they do, only make sure they complete properly. So if you see any errors come up, tell one of us immediately. Copy this into your terminal:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
Step 3 - Set up your keys
Step 4 - Update your Debian packages
Step 5 - Get Ros melodic
Step 6 - Initialize rosdep
Step 7 - Environment Variable Setup
Step 8 - Initialize catkin workspace
- Command should complete and not really do anything
- If init_catkin_workspace failed then ROS did not install correctly and/or try "sudo apt-get update" which may fix the issue where catkin_init_workspace command can not be found
Step 9 - Clone RoboRacing Repository
- Fork RoboRacing Github Repository
Step 10 - Install ROS Dependencies
- rosdep will download and install all of the necessary ros package dependencies, type "y" whenever it asks if it is ok to continue installation
Step 11 - Install Python 2 Dependencies
- Install python dependencies (for Python 2) which are not in ROS:
Step 12 - Build the Code
- If this fails the first time try running catkin_make again
- If it continues to fail because it could not find some of the igvc_msgs header files, run "catkin_make igvc_msgs_gencpp" and then "catkin_make"
Step 13 - Run the Code
- The code should now be running and complaining about not being able to connect to various devices, this is all good and you are ready to start writing igvc code