Skip to content

Commit

Permalink
Initial code commit
Browse files Browse the repository at this point in the history
  • Loading branch information
patnolan33 committed Apr 12, 2019
1 parent 303b092 commit 6051558
Show file tree
Hide file tree
Showing 5,968 changed files with 1,609,686 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
68 changes: 68 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
*.o
*.so*
Makefile
*/Makefile
mace/mace
.qmake.stash
example/example
*.user*
*.a

/build-src-Desktop_Qt_5_7_1_MinGW_32bit-Debug/*
/build**


*.Debug
*.Release
*.dll
*.lib
*.exe
*.a
node_modules
/bin/*
*.gypi
/src/common/debug/*
/src/common/release/*
/src/comms/debug/*
/src/comms/release/*
/src/data/debug/*
/src/data/release/*
/src/mace/debug/*
/src/mace/release/*
/src/mace_core/debug/*
/src/mace_core/release/*
/src/data_ardupilot/debug/*
/src/data_ardupilot/release/*
/src/module_ground_station/debug/*
/src/module_ground_station/release/*
/src/module_path_planning_NASAPhase2/debug/*
/src/module_path_planning_NASAPhase2/release/*
/src/module_RTA_NASAPhase2/debug/*
/src/module_RTA_NASAPhase2/release/*
/src/module_vehicle_MAVLINK/debug/*
/src/module_vehicle_MAVLINK/release/*
/include/*
/logs/*
/gui_dlls/*
/node_packages/*
ElectronGUI/.vscode/settings.json
ElectronGUI/PrebuiltBinaries*
PrebuiltBinaries/*
*.gnu

/logs/*
ElectronGUI/yarn-error.log
ElectronGUI/build
ElectronGUI/yarn.lock

/catkin_sim_environment/build/*
/catkin_sim_environment/devel/*
/Eigen/EigenFull/build**

/docs/html/*
/docs/latex/*


/catkin_sim_environment/src/matlab_gen/*

/MaceSetup_Configs/TestConfigs/*
16 changes: 16 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

[submodule "mavlink_cpp/V2"]
path = mavlink_cpp/V2
url = https://github.com/mavlink/c_library_v2.git
[submodule "tools/octomap"]
path = tools/octomap
url = https://github.com/OctoMap/octomap.git
[submodule "tools/flann"]
path = tools/flann
url = https://github.com/mariusmuja/flann.git
[submodule "tools/fcl"]
path = tools/fcl
url = https://github.com/flexible-collision-library/fcl.git
[submodule "tools/libccd"]
path = tools/libccd
url = https://github.com/danfis/libccd.git
77 changes: 77 additions & 0 deletions Docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# README
#####
# Build & Rebuild with the following command
# sudo docker build -t ubuntu1604:mace .
#####
###
# Now is a good time to learn how to use screen, otherwise the following commands will help you attach/detach and open new terminals
###
### Run and attach with a terminal with:
# sudo docker run -it ubuntu1604:mace
###
# To detach use: Ctrl+p + Ctrl+q
###
# To reattach: sudo docker attach [CONTAINER-ID] (you may have to press enter again to get the command line back)
###
# To start a new bash shell (so you don't interrupt something else you were running)
# sudo docker exec -ti [CONTAINER-ID] bash
# With a new bash shell run "exit" instead of Ctrl+p + Ctrl+q
#####

## DON'T CHANGE THIS STUFF
#Download base image ubuntu 16.04
FROM ubuntu:16.04

# Update Ubuntu Software repository
RUN apt-get update
RUN apt-get install -y screen
# Some config to get screen working nicely
RUN echo "termcapinfo xterm* ti@:te@" >> ~/.screenrc
RUN echo "defshell -bash" >> ~/.screenrc
## START CHANGING STUFF

# Install tools here, (recommended to use multiple lines so they don't have to all reinstall if you change one)
RUN apt-get install -y qt5-default cmake
RUN apt-get install -y git
RUN apt-get install -y libqt5serialport5-dev
RUN apt-get install -y build-essential
RUN apt-get install -y nano

# Install things in order of least likely to change

### Digiwrapper
RUN git clone https://github.com/heronsystems/MACEDigiWrapper
WORKDIR /MACEDigiWrapper
RUN qmake
RUN make
RUN make install
WORKDIR /

### MACE deps
RUN git clone https://github.com/heronsystems/MACE
WORKDIR /MACE
RUN git checkout DockerNetworking
RUN git pull origin DockerNetworking
RUN git submodule init
RUN git submodule update
## FLANN
RUN cd ./tools/flann && mkdir build && cd ./build && cmake .. && make && make install
## Octomap
RUN cd ./tools/octomap && mkdir build && cd ./build && cmake .. && make && make install
## Libccd
RUN cd ./tools/libccd && mkdir build && cd ./build && cmake -G "Unix Makefiles" .. && make && make install
## FCL
# RUN cd ./tools/fcl && mkdir build && cd ./build && cmake .. -DEIGEN3_INCLUDE_DIR=/MACE/Eigen/include/eigen3/ && make && make install

### Actual MACE
## Additional deps
RUN apt-get install -y libboost-system-dev
## Env vars
ENV MACE_ROOT /MACE
ENV MACE_DIGIMESH_WRAPPER /MACEDigiWrapper
## LD conf
RUN echo "/MACE/lib" > /etc/ld.so.conf.d/MACE.conf
RUN echo "/MACEDigiWrapper/lib" > /etc/ld.so.conf.d/MACEDigiMeshWrapper.conf
## Build mace
RUN mkdir build && cd ./build && qmake ../src/src.pro && make && make install
RUN ldconfig
80 changes: 80 additions & 0 deletions Docker/Dockerfile_MACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# README
#####
# Build & Rebuild with the following command
# sudo docker build -t ubuntu1604:mace .
#####
###
# Now is a good time to learn how to use screen, otherwise the following commands will help you attach/detach and open new terminals
###
### Run and attach with a terminal with:
# sudo docker run -it ubuntu1604:mace
###
# To detach use: Ctrl+p + Ctrl+q
###
# To reattach: sudo docker attach [CONTAINER-ID] (you may have to press enter again to get the command line back)
###
# To start a new bash shell (so you don't interrupt something else you were running)
# sudo docker exec -ti [CONTAINER-ID] bash
# With a new bash shell run "exit" instead of Ctrl+p + Ctrl+q
#####

## DON'T CHANGE THIS STUFF
#Download base image ubuntu 16.04
FROM ubuntu:16.04

# Update Ubuntu Software repository
RUN apt-get update
RUN apt-get install -y screen
# Some config to get screen working nicely
RUN echo "termcapinfo xterm* ti@:te@" >> ~/.screenrc
RUN echo "defshell -bash" >> ~/.screenrc
## START CHANGING STUFF

# Install tools here, (recommended to use multiple lines so they don't have to all reinstall if you change one)
RUN apt-get install -y qt5-default cmake
RUN apt-get install -y git
RUN apt-get install -y libqt5serialport5-dev
RUN apt-get install -y build-essential
RUN apt-get install -y nano

# Install things in order of least likely to change

### Digiwrapper
RUN git clone https://github.com/heronsystems/MACEDigiWrapper
WORKDIR /MACEDigiWrapper
RUN qmake
RUN make
RUN make install
WORKDIR /

### MACE deps
RUN git clone https://github.com/heronsystems/MACE
WORKDIR /MACE
RUN git checkout DockerNetworking
RUN git pull origin DockerNetworking
RUN git submodule init
RUN git submodule update
## FLANN
RUN cd ./tools/flann && mkdir build && cd ./build && cmake .. && make && make install
## Octomap
RUN cd ./tools/octomap && mkdir build && cd ./build && cmake .. && make && make install
## Libccd
RUN cd ./tools/libccd && mkdir build && cd ./build && cmake -G "Unix Makefiles" .. && make && make install
## FCL
# RUN cd ./tools/fcl && mkdir build && cd ./build && cmake .. -DEIGEN3_INCLUDE_DIR=/MACE/Eigen/include/eigen3/ && make && make install

### Actual MACE
## Additional deps
RUN apt-get install -y libboost-system-dev
## Env vars
ENV MACE_ROOT /MACE
ENV MACE_DIGIMESH_WRAPPER /MACEDigiWrapper
## LD conf
RUN echo "/MACE/lib" > /etc/ld.so.conf.d/MACE.conf
RUN echo "/MACEDigiWrapper/lib" > /etc/ld.so.conf.d/MACEDigiMeshWrapper.conf
## Build mace
RUN mkdir build && cd ./build && qmake ../src/src.pro && make && make install
RUN ldconfig


WORKDIR /MACE
125 changes: 125 additions & 0 deletions Docker/Dockerfile_MACE_ROS
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# README
#####
# Build & Rebuild with the following command
# sudo docker build -t ubuntu1604:mace .
#####
###
# Now is a good time to learn how to use screen, otherwise the following commands will help you attach/detach and open new terminals
###
### Run and attach with a terminal with:
# sudo docker run -it ubuntu1604:mace
###
# To detach use: Ctrl+p + Ctrl+q
###
# To reattach: sudo docker attach [CONTAINER-ID] (you may have to press enter again to get the command line back)
###
# To start a new bash shell (so you don't interrupt something else you were running)
# sudo docker exec -ti [CONTAINER-ID] bash
# With a new bash shell run "exit" instead of Ctrl+p + Ctrl+q
#####

## DON'T CHANGE THIS STUFF
#Download base image ubuntu 16.04
FROM ubuntu:16.04

# Update Ubuntu Software repository
RUN apt-get update
RUN apt-get install -y screen
# Some config to get screen working nicely
RUN echo "termcapinfo xterm* ti@:te@" >> ~/.screenrc
RUN echo "defshell -bash" >> ~/.screenrc
## START CHANGING STUFF

# Install tools here, (recommended to use multiple lines so they don't have to all reinstall if you change one)
RUN apt-get install -y qt5-default cmake
RUN apt-get install -y git
RUN apt-get install -y libqt5serialport5-dev
RUN apt-get install -y build-essential
RUN apt-get install -y nano


# Install ROS
# May not need this first apt-get update...
RUN apt-get update
RUN apt-get install -y lsb-release
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
RUN apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
RUN apt-get update
RUN apt-get install -y ros-kinetic-desktop-full
RUN rosdep init
RUN rosdep update
RUN echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
RUN /bin/bash -c "source ~/.bashrc"
RUN apt-get install -y python-rosinstall
RUN apt-get install -y python-rosinstall-generator
RUN apt-get install -y python-wstool
RUN apt-get install -y build-essential


# Install things in order of least likely to change

### Digiwrapper
RUN git clone https://github.com/heronsystems/MACEDigiWrapper
WORKDIR /MACEDigiWrapper
RUN qmake
RUN make
RUN make install
WORKDIR /

### MACE deps
RUN git clone https://github.com/heronsystems/MACE
WORKDIR /MACE
RUN git checkout DockerNetworking
RUN git pull origin DockerNetworking
RUN git submodule init
RUN git submodule update
## FLANN
RUN cd ./tools/flann && mkdir build && cd ./build && cmake .. && make && make install
## Octomap
RUN cd ./tools/octomap && mkdir build && cd ./build && cmake .. && make && make install
## Libccd
RUN cd ./tools/libccd && mkdir build && cd ./build && cmake -G "Unix Makefiles" .. && make && make install
## FCL
# RUN cd ./tools/fcl && mkdir build && cd ./build && cmake .. -DEIGEN3_INCLUDE_DIR=/MACE/Eigen/include/eigen3/ && make && make install

### Actual MACE
## Additional deps
RUN apt-get install -y libboost-system-dev
## Env vars
ENV MACE_ROOT /MACE
ENV MACE_DIGIMESH_WRAPPER /MACEDigiWrapper
## LD conf
RUN echo "/MACE/lib" > /etc/ld.so.conf.d/MACE.conf
RUN echo "/MACEDigiWrapper/lib" > /etc/ld.so.conf.d/MACEDigiMeshWrapper.conf

# MOVE UP AFTER WORKING INSTALL:
RUN apt-get install -y ros-kinetic-octomap*
RUN apt-get install -y ros-kinetic-tf*
#

## Build mace
RUN mkdir build && cd ./build && qmake ../src/src.pro && make && make install
RUN ldconfig

# MOVE UP AFTER WORKING INSTALL:
RUN apt-get install -y python-rospkg
WORKDIR /MACE/catkin_sim_environment
RUN /bin/bash -c '. /opt/ros/kinetic/setup.bash; catkin_make'
RUN echo "source /MACE/catkin_sim_environment/devel/setup.bash" >> ~/.bashrc
RUN /bin/bash -c "source ~/.bashrc"
RUN apt-get install -y python-pip python-dev build-essential
RUN pip install --upgrade pip
RUN pip install --upgrade virtualenv
RUN apt-get install -y tmux
# RUN echo "/opt/ros/kinetic/lib" > /etc/ld.so.conf.d/ROS.conf
# RUN ldconfig

# RUN pip install rospkg
#

## TMUX Configuration
COPY tmux/.tmux.conf /root/
COPY tmux/.tmux.conf.local /root/


WORKDIR /MACE
Loading

0 comments on commit 6051558

Please sign in to comment.