mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
Initial commit of the WPILib simulation support in an alpha quality state.
Fixes to deal with the switch to .hpp files in the HAL and other misc problems due to rebasing. Added Omar's changes to the compressor interface Fixes to make C++ plugin compile on linux. Added import of the WPILibSim code from the graduate class. It shows up as wpilibJavaSim to follow the convention set by wpilibJava, wpilibJavaJNI and wpilibJavaFinal. Fixed wpilibJavaSim artifactId to mirror the new convention. Modified the build of the java plugin to pull in the simulation dependencies. Added stacktrace printing. Fixed support for creating projects. Added support for the isReal() and isSimulation() methods along with the AnalogPotentiometer object to support simulating GearsBot. Added support for a "WPILib Simulate" button. Added GearsBot to the built in examples. Added support for specifying the world file during project creation and switched the default from BluntObjectBot to GearsBot. Removed unused import. Added file browser for world files. Added support for debugging in simulation. Change simulate icon to be a Gazebo icon. Switched over to the gazebo messaging system. Updated location of default world file. Reverted cmake change. Fixed bug in WPILibJSim, added better logging and cleaned up code. Made the frc_gazebo_plugin build using raw cmake instead of catkin, breaking the final ROS dependencies. Added installation to frc_gazebo_plugin Makefile. Fixed running of simulation to actually use frcsim. Initial commit of simulation library for C++. Has the minimal subset of features necessary for having a Simple Robot run in teleoperated mode. Added notes for generating protobuf messages. Import of the debuild process into the main repository. Moved frc_gazebo_plugin under simulation and removed the gazebo folder. Updated the gazebo plugin to remove excessive printing and limit motor signal to [-1,1]. Updated WPILibJSim to support latching messages and to sleep for 20ms in iterative robot. Reduced delay between starting frcsim and the users program to 1 second. Updated GearsBot example. Fixed a few minor issues for demoable state. Added simulator support for Victors, Jaguars and Talons. Added NetworkTables, SmartDashboard and LiveWindow to the simulator. Added AnalogPotentiometer for simulation. Added support for simulating encoders. Added simulation support for Gyro. Added IterativeRobot, Fixed Timers, Notifiers, PIDControllers and other minor fixes + cleanup. Added RobotDrive support to simulation. Separated out JavaGazebo so that SimDS will be able to reuse it. Separated out SimDS into its own application.. Fixes so that the SimDS is distributed and runs properly for Java with the eclipse plugins. Added DriverStation support to WPILibCSim Cleanup of DriverStation, WaitUntilCommand and AnalogPotentiometer for WPILibCSim. Cleanup of includes for WPILibCSim Added AnalogPotentiometer to the real WPILibC. Added AnalogPotentiometer to the real WPILibC. Added GearsBot example to C++ eclipse plugin. WPILibCSim fixes to work with launching from the plugin. Package libwpilibsim in a deb file. Added includes to plugin distribution. Added support for external-limit-switches to Gazebo, Java and C++. Added support for Gazebo Rangefinders and Analog channels to read their values in C++ and Java. Added support for internal limit switches. Updated GearsBot programs to use limit switches + range finders. Added disabling of motors when robot is disabled to more closely mimic the real robot. Fixes to deal with the switch to .hpp files in the HAL and other misc problems due to rebasing. Change-Id: I624c5f4d0f28282616a7c92083575bf68adcdce2
This commit is contained in:
committed by
thomasclark
parent
d5a509c7e7
commit
cb56c9a144
42
simulation/debs/.gitignore
vendored
Normal file
42
simulation/debs/.gitignore
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
# General
|
||||
*.log
|
||||
build/
|
||||
screensteps/
|
||||
trash/
|
||||
|
||||
# TMP
|
||||
*/*/debian/files
|
||||
*/*/models/
|
||||
*/*/worlds
|
||||
*/*/plugins/
|
||||
*/*/features/
|
||||
*/*/src/
|
||||
*/*/devel/
|
||||
*/*/.*
|
||||
*/*/include/
|
||||
*/*/msgs/
|
||||
|
||||
# General Build Artifacts
|
||||
*.dsc
|
||||
*.deb
|
||||
*.orig.tar.gz
|
||||
*.debian.tar.gz
|
||||
*.changes
|
||||
*.build
|
||||
*.substvars
|
||||
*/*/debian/*/DEBIAN/
|
||||
|
||||
# Specific Build Artifacts
|
||||
frcsim-gazebo-plugins/frcsim-gazebo-plugins/debian/frcsim-gazebo-plugins/
|
||||
frcsim-gazebo-models/frcsim-gazebo-models/debian/frcsim-gazebo-models/
|
||||
frcsim-eclipse-plugins/frcsim-eclipse-plugins/debian/frcsim-eclipse-plugins/
|
||||
frcsim-eclipse-toolchain-plugin/frcsim-eclipse-toolchain-plugin/debian/frcsim-eclipse-toolchain-plugin/
|
||||
frcsim/frcsim/debian/frcsim/
|
||||
frcsim-libwpilibsim-cpp/frcsim-libwpilibsim-cpp/debian/frcsim-libwpilibsim-cpp/
|
||||
|
||||
frcsim-libwpilibsim-cpp/frcsim-libwpilibsim-cpp/Makefile
|
||||
frcsim-libwpilibsim-cpp/frcsim-libwpilibsim-cpp/CMakeLists.txt
|
||||
|
||||
# Generated Repository
|
||||
repository/db/
|
||||
repository/dists/
|
||||
102
simulation/debs/Makefile
Normal file
102
simulation/debs/Makefile
Normal file
@@ -0,0 +1,102 @@
|
||||
codename=trusty
|
||||
allwpilib=../..
|
||||
|
||||
version=0.1
|
||||
package-version=1
|
||||
gazebo-plugins-version=$(version)
|
||||
gazebo-plugins-package-version=$(gazebo-plugins-version)-$(package-version)
|
||||
gazebo-models-version=$(version)
|
||||
gazebo-models-package-version=$(gazebo-models-version)-$(package-version)
|
||||
eclipse-plugins-version=$(version)
|
||||
eclipse-plugins-package-version=$(eclipse-plugins-version)-$(package-version)
|
||||
eclipse-toolchain-version=$(version)
|
||||
eclipse-toolchain-package-version=$(eclipse-toolchain-version)-$(package-version)
|
||||
libwpilibsim-version=$(version)
|
||||
libwpilibsim-package-version=$(libwpilibsim-version)-$(package-version)
|
||||
frcsim-version=$(version)
|
||||
frcsim-package-version=$(frcsim-version)-$(package-version)
|
||||
|
||||
all: debs update-repository
|
||||
|
||||
allwpilib:
|
||||
cd $(allwpilib) && mvn -T 8 clean package -Dwith-eclipse-plugins -DskipTests -DskipIT
|
||||
|
||||
orig: clean
|
||||
cd frcsim-gazebo-plugins && tar --exclude="./debian" -czvf \
|
||||
frcsim-gazebo-plugins_${gazebo-plugins-version}.orig.tar.gz frcsim-gazebo-plugins
|
||||
cd frcsim-gazebo-models && tar --exclude="./debian" -czvf \
|
||||
frcsim-gazebo-models_${gazebo-models-version}.orig.tar.gz frcsim-gazebo-models
|
||||
cd frcsim-eclipse-plugins && tar --exclude="./debian" -czvf \
|
||||
frcsim-eclipse-plugins_${eclipse-plugins-version}.orig.tar.gz frcsim-eclipse-plugins
|
||||
cd frcsim-eclipse-toolchain-plugin && tar --exclude="./debian" -czvf \
|
||||
frcsim-eclipse-toolchain-plugin_${eclipse-toolchain-version}.orig.tar.gz frcsim-eclipse-toolchain-plugin
|
||||
cd frcsim-libwpilibsim-cpp && tar --exclude="./debian" -czvf \
|
||||
frcsim-libwpilibsim-cpp_${libwpilibsim-version}.orig.tar.gz frcsim-libwpilibsim-cpp
|
||||
cd frcsim && tar --exclude="./debian" -czvf \
|
||||
frcsim_${frcsim-version}.orig.tar.gz frcsim
|
||||
|
||||
debs:
|
||||
cd frcsim-gazebo-plugins/frcsim-gazebo-plugins && debuild -us -uc -iamd64
|
||||
cd frcsim-gazebo-models/frcsim-gazebo-models && debuild -us -uc
|
||||
cd frcsim-eclipse-plugins/frcsim-eclipse-plugins && debuild -us -uc
|
||||
cd frcsim-eclipse-toolchain-plugin/frcsim-eclipse-toolchain-plugin && debuild -us -uc
|
||||
cd frcsim-libwpilibsim-cpp/frcsim-libwpilibsim-cpp && debuild -us -uc
|
||||
cd frcsim/frcsim && debuild -us -uc
|
||||
|
||||
update-repository: clean-repository
|
||||
cd repository && reprepro includedeb $(codename) ../frcsim-gazebo-plugins/frcsim-gazebo-plugins_$(gazebo-plugins-package-version)_amd64.deb
|
||||
cd repository && reprepro includedeb $(codename) ../frcsim-gazebo-models/frcsim-gazebo-models_$(gazebo-models-package-version)_all.deb
|
||||
cd repository && reprepro includedeb $(codename) ../frcsim-eclipse-plugins/frcsim-eclipse-plugins_$(eclipse-plugins-package-version)_all.deb
|
||||
cd repository && reprepro includedeb $(codename) ../frcsim-eclipse-toolchain-plugin/frcsim-eclipse-toolchain-plugin_$(eclipse-toolchain-package-version)_all.deb
|
||||
cd repository && reprepro includedeb $(codename) ../frcsim-libwpilibsim-cpp/frcsim-libwpilibsim-cpp_$(libwpilibsim-package-version)_amd64.deb
|
||||
cd repository && reprepro includedeb $(codename) ../frcsim/frcsim_$(frcsim-package-version)_all.deb
|
||||
|
||||
clean-repository:
|
||||
cd repository && reprepro remove $(codename) frcsim-gazebo-plugins
|
||||
cd repository && reprepro remove $(codename) frcsim-gazebo-models
|
||||
cd repository && reprepro remove $(codename) frcsim-eclipse-plugins
|
||||
cd repository && reprepro remove $(codename) frcsim-eclipse-toolchain-plugin
|
||||
cd repository && reprepro remove $(codename) frcsim-libwpilibsim-cpp
|
||||
cd repository && reprepro remove $(codename) frcsim
|
||||
|
||||
clean:
|
||||
cd frcsim-gazebo-plugins/frcsim-gazebo-plugins && debuild clean
|
||||
cd frcsim-gazebo-models/frcsim-gazebo-models && debuild clean
|
||||
cd frcsim-eclipse-plugins/frcsim-eclipse-plugins && debuild clean
|
||||
cd frcsim-eclipse-toolchain-plugin/frcsim-eclipse-toolchain-plugin && debuild clean
|
||||
cd frcsim-libwpilibsim-cpp/frcsim-libwpilibsim-cpp && debuild clean
|
||||
cd frcsim/frcsim && debuild clean
|
||||
|
||||
rm -f frcsim-gazebo-plugins/frcsim-gazebo-plugins_$(gazebo-plugins-package-version).orig.tar.gz
|
||||
rm -f frcsim-gazebo-models/frcsim-gazebo-models_$(gazebo-models-package-version).orig.tar.gz
|
||||
rm -f frcsim-eclipse-plugins/frcsim-eclipse-plugins_$(eclipse-plugins-package-version).orig.tar.gz
|
||||
rm -f frcsim-eclipse-toolchain-plugin/frcsim-eclipse-toolchain-plugin_$(eclipse-toolchain-package-version).orig.tar.gz
|
||||
rm -f frcsim-libwpilib-cpp/frcsim-libwpilib-cpp_$(libwpilibsim-version).orig.tar.gz
|
||||
rm -f frcsim/frcsim_$(frcsim-package-version).orig.tar.gz
|
||||
|
||||
pull: pull-gazebo-plugins pull-eclipse-plugins pull-libwpilibsim-cpp orig
|
||||
|
||||
pull-gazebo-plugins:
|
||||
cp -rf -t frcsim-gazebo-plugins/frcsim-gazebo-plugins/ $(allwpilib)/simulation/frc_gazebo_plugin/*
|
||||
echo Increment version?
|
||||
|
||||
pull-eclipse-plugins:
|
||||
rm -rf frcsim-eclipse-plugins/frcsim-eclipse-plugins/plugins
|
||||
rm -rf frcsim-eclipse-plugins/frcsim-eclipse-plugins/features
|
||||
mkdir -p frcsim-eclipse-plugins/frcsim-eclipse-plugins/plugins
|
||||
mkdir -p frcsim-eclipse-plugins/frcsim-eclipse-plugins/features
|
||||
cp $(allwpilib)/eclipse-plugins/edu.wpi.first.wpilib.plugins.updatesite/target/site/plugins/edu.wpi.first.wpilib.plugins.java_* frcsim-eclipse-plugins/frcsim-eclipse-plugins/plugins
|
||||
cp $(allwpilib)/eclipse-plugins/edu.wpi.first.wpilib.plugins.updatesite/target/site/plugins/edu.wpi.first.wpilib.plugins.cpp_* frcsim-eclipse-plugins/frcsim-eclipse-plugins/plugins
|
||||
cp $(allwpilib)/eclipse-plugins/edu.wpi.first.wpilib.plugins.updatesite/target/site/plugins/edu.wpi.first.wpilib.plugins.core_* frcsim-eclipse-plugins/frcsim-eclipse-plugins/plugins
|
||||
cp $(allwpilib)/eclipse-plugins/edu.wpi.first.wpilib.plugins.updatesite/target/site/features/edu.wpi.first.wpilib.plugins.java.feature_* frcsim-eclipse-plugins/frcsim-eclipse-plugins/features
|
||||
cp $(allwpilib)/eclipse-plugins/edu.wpi.first.wpilib.plugins.updatesite/target/site/features/edu.wpi.first.wpilib.plugins.cpp.feature_* frcsim-eclipse-plugins/frcsim-eclipse-plugins/features
|
||||
cp $(allwpilib)/eclipse-plugins/edu.wpi.first.wpilib.plugins.updatesite/target/site/features/edu.wpi.first.wpilib.plugins.core.feature_* frcsim-eclipse-plugins/frcsim-eclipse-plugins/features
|
||||
echo Increment version?
|
||||
|
||||
pull-libwpilibsim-cpp:
|
||||
cp -rf -t frcsim-libwpilibsim-cpp/frcsim-libwpilibsim-cpp/ $(allwpilib)/wpilibc/wpilibC++Sim/*
|
||||
echo Increment version?
|
||||
|
||||
deploy:
|
||||
rsync -r -v -C -p repository/ adhenning@ccc.wpi.edu:public_html/frcsim/
|
||||
|
||||
20
simulation/debs/README.org
Normal file
20
simulation/debs/README.org
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
* Setting up apt-repository
|
||||
: sudo apt-get install reprepro
|
||||
http://kaivanov.blogspot.com/2012/08/creating-apt-repository-with-reprepro.html
|
||||
** One-Time
|
||||
- Get signing key
|
||||
: gpg --armor --output frcsim.key --export
|
||||
|
||||
** To build and add debs
|
||||
: make
|
||||
: rsync -r repository/ adhenning@ccc.wpi.edu:public_html/frcsim # Syncs repo
|
||||
|
||||
** To use
|
||||
: sudo nano /etc/apt/sources.list.d/frcsim-latest.list
|
||||
: deb http://users.wpi.edu/~adhenning/frcsim raring main
|
||||
: deb-src http://users.wpi.edu/~adhenning/frcsim raring main
|
||||
|
||||
: curl -H GET users.wpi.edu/~adhenning/frcsim.key | sudo apt-key add -
|
||||
: sudo apt-get update
|
||||
: sudo apt-get install frcsim
|
||||
@@ -0,0 +1,16 @@
|
||||
prefix = /usr
|
||||
eclipsedir = $(prefix)/share/eclipse/dropins/frcsim
|
||||
plugindir = $(eclipsedir)/plugins
|
||||
featuredir = $(eclipsedir)/features
|
||||
|
||||
all: clean
|
||||
sh ./genfeatures.sh
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
||||
install: all
|
||||
mkdir -p $(DESTDIR)$(plugindir)
|
||||
mkdir -p $(DESTDIR)$(featuredir)
|
||||
install plugins/** $(DESTDIR)$(plugindir)
|
||||
cp -r build/features/** $(DESTDIR)$(featuredir)
|
||||
@@ -0,0 +1,5 @@
|
||||
frcsim-eclipse-plugins (0.1-1) trusty; urgency=low
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Alex Henning <alex@thoriumrobotics.com> Wed, 14 May 2014 21:04:27 -0400
|
||||
@@ -0,0 +1 @@
|
||||
9
|
||||
@@ -0,0 +1,13 @@
|
||||
Source: frcsim-eclipse-plugins
|
||||
Maintainer: Alex Henning <alex@thoriumrobotics.com>
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Standards-Version: 3.9.4
|
||||
Build-Depends: debhelper (>= 9)
|
||||
|
||||
Package: frcsim-eclipse-plugins
|
||||
Architecture: all
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, eclipse, eclipse-jdt, eclipse-cdt, eclipse-rse, eclipse-cdt-launch-remote, frcsim-eclipse-toolchain-plugin, g++, libwebkitgtk-1.0-0, frcsim-libwpilibsim-cpp
|
||||
Description: FRC plugin for developing code for RoboRIO and WPILibSim.
|
||||
This plugin allows the usage of eclipse for development of WPILib
|
||||
robot code for the RoboRIO and simulation in gazebo.
|
||||
@@ -0,0 +1,25 @@
|
||||
Copyright
|
||||
Copyright (c) 2009 FIRST
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the FIRST nor the
|
||||
names of its contributors may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY FIRST AND CONTRIBUTORS``AS IS'' AND ANY
|
||||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY NONINFRINGEMENT AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FIRST OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/make -f
|
||||
%:
|
||||
dh $@
|
||||
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
@@ -0,0 +1,8 @@
|
||||
mkdir -p build/zips/features
|
||||
mkdir -p build/features
|
||||
for i in features/*.jar; do
|
||||
echo $i
|
||||
cp $i build/zips/$i.zip;
|
||||
mkdir build/$i
|
||||
unzip build/zips/$i.zip -d build/$i
|
||||
done
|
||||
1
simulation/debs/frcsim-eclipse-plugins/version
Normal file
1
simulation/debs/frcsim-eclipse-plugins/version
Normal file
@@ -0,0 +1 @@
|
||||
0.1.1
|
||||
@@ -0,0 +1,16 @@
|
||||
prefix = /usr
|
||||
eclipsedir = $(prefix)/share/eclipse/dropins/frcsim
|
||||
plugindir = $(eclipsedir)/plugins
|
||||
featuredir = $(eclipsedir)/features
|
||||
|
||||
all: clean
|
||||
sh ./genfeatures.sh
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
||||
install: all
|
||||
mkdir -p $(DESTDIR)$(plugindir)
|
||||
mkdir -p $(DESTDIR)$(featuredir)
|
||||
install plugins/** $(DESTDIR)$(plugindir)
|
||||
cp -r build/features/** $(DESTDIR)$(featuredir)
|
||||
@@ -0,0 +1,5 @@
|
||||
frcsim-eclipse-toolchain-plugin (0.1-1) trusty; urgency=low
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Alex Henning <alex@thoriumrobotics.com> Wed, 14 May 2014 21:04:27 -0400
|
||||
@@ -0,0 +1 @@
|
||||
9
|
||||
@@ -0,0 +1,13 @@
|
||||
Source: frcsim-eclipse-toolchain-plugin
|
||||
Maintainer: Alex Henning <alex@thoriumrobotics.com>
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Standards-Version: 3.9.4
|
||||
Build-Depends: debhelper (>= 9)
|
||||
|
||||
Package: frcsim-eclipse-toolchain-plugin
|
||||
Architecture: all
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, eclipse, eclipse-jdt, eclipse-cdt
|
||||
Description: FRC plugin for developing code for RoboRIO and WPILibSim.
|
||||
This plugin allows the usage of eclipse for development of WPILib
|
||||
robot code for the RoboRIO and simulation in gazebo.
|
||||
@@ -0,0 +1,25 @@
|
||||
Copyright
|
||||
Copyright (c) 2009 FIRST
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the FIRST nor the
|
||||
names of its contributors may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY FIRST AND CONTRIBUTORS``AS IS'' AND ANY
|
||||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY NONINFRINGEMENT AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FIRST OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/make -f
|
||||
%:
|
||||
dh $@
|
||||
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
@@ -0,0 +1,8 @@
|
||||
mkdir -p build/zips/features
|
||||
mkdir -p build/features
|
||||
for i in features/*.jar; do
|
||||
echo $i
|
||||
cp $i build/zips/$i.zip;
|
||||
mkdir build/$i
|
||||
unzip build/zips/$i.zip -d build/$i
|
||||
done
|
||||
@@ -0,0 +1,16 @@
|
||||
prefix = /usr
|
||||
frcsimdir = $(prefix)/share/frcsim
|
||||
modeldir = $(frcsimdir)/models
|
||||
worlddir = $(frcsimdir)/worlds
|
||||
|
||||
all:
|
||||
echo Should download files
|
||||
|
||||
clean:
|
||||
echo Cleaning
|
||||
|
||||
install: all
|
||||
mkdir -p $(DESTDIR)$(modeldir)
|
||||
mkdir -p $(DESTDIR)$(worlddir)
|
||||
cp -r models/** $(DESTDIR)$(modeldir)
|
||||
cp -r worlds/** $(DESTDIR)$(worlddir)
|
||||
@@ -0,0 +1,5 @@
|
||||
frcsim-gazebo-models (0.1-1) trusty; urgency=low
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Alex Henning <alex@thoriumrobotics.com> Wed, 14 May 2014 17:13:26 -0400
|
||||
@@ -0,0 +1 @@
|
||||
9
|
||||
@@ -0,0 +1,13 @@
|
||||
Source: frcsim-gazebo-models
|
||||
Maintainer: Alex Henning <alex@thoriumrobotics.com>
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Standards-Version: 3.9.4
|
||||
Build-Depends: debhelper (>= 9)
|
||||
|
||||
Package: frcsim-gazebo-models
|
||||
Architecture: all
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, frcsim-gazebo-plugins
|
||||
Description: FRC models that can be used in Gazebo.
|
||||
Models that can be used in Gazebo to simulate FRC-like
|
||||
robots are controllable through WPILibSim (Java or C++)
|
||||
@@ -0,0 +1,25 @@
|
||||
Copyright
|
||||
Copyright (c) 2009 FIRST
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the FIRST nor the
|
||||
names of its contributors may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY FIRST AND CONTRIBUTORS``AS IS'' AND ANY
|
||||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY NONINFRINGEMENT AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FIRST OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
3
simulation/debs/frcsim-gazebo-models/frcsim-gazebo-models/debian/rules
Executable file
3
simulation/debs/frcsim-gazebo-models/frcsim-gazebo-models/debian/rules
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/make -f
|
||||
%:
|
||||
dh $@
|
||||
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
@@ -0,0 +1,16 @@
|
||||
cmake_minimum_required(VERSION 2.8.3)
|
||||
project(frc_gazebo_plugin)
|
||||
|
||||
include (FindPkgConfig)
|
||||
if (PKG_CONFIG_FOUND)
|
||||
pkg_check_modules(GAZEBO gazebo)
|
||||
endif()
|
||||
|
||||
find_package(gazebo REQUIRED)
|
||||
|
||||
file(GLOB_RECURSE SRC_FILES src/*.cpp src/*.cc)
|
||||
include_directories(src ${Boost_INCLUDE_DIR} ${GAZEBO_INCLUDE_DIRS})
|
||||
add_library(${PROJECT_NAME} SHARED ${SRC_FILES})
|
||||
|
||||
link_directories(${GAZEBO_LIBRARY_DIRS})
|
||||
target_link_libraries(${PROJECT_NAME} ${GAZEBO_LIBRARIES} tinyxml2)
|
||||
@@ -0,0 +1,15 @@
|
||||
prefix = /usr
|
||||
lib.dir = $(prefix)/lib
|
||||
plugin.dir = $(lib.dir)/frcsim/plugins
|
||||
build.dir = build
|
||||
|
||||
all:
|
||||
mkdir -p $(build.dir)
|
||||
cd ${build.dir} && cmake .. && make
|
||||
|
||||
clean:
|
||||
rm -rf $(build.dir)
|
||||
|
||||
install: all
|
||||
mkdir -p $(DESTDIR)$(plugin.dir)
|
||||
install $(build.dir)/libfrc_gazebo_plugin.so $(DESTDIR)$(plugin.dir)
|
||||
@@ -0,0 +1 @@
|
||||
protoc --cpp_out=src/ msgs/float64.proto
|
||||
@@ -0,0 +1,5 @@
|
||||
frcsim-gazebo-plugins (0.1-1) trusty; urgency=low
|
||||
|
||||
* Initial release
|
||||
|
||||
-- Alex Henning <alex@thoriumrobotics.com> Wed, 14 May 2014 16:22:26 -0400
|
||||
@@ -0,0 +1 @@
|
||||
9
|
||||
@@ -0,0 +1,13 @@
|
||||
Source: frcsim-gazebo-plugins
|
||||
Maintainer: Alex Henning <alex@thoriumrobotics.com>
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Standards-Version: 3.9.4
|
||||
Build-Depends: debhelper (>= 9), ros-indigo-ros-base, gazebo2, libtinyxml2-dev
|
||||
|
||||
Package: frcsim-gazebo-plugins
|
||||
Architecture: i386 amd64
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, gazebo2, libtinyxml2-dev
|
||||
Description: FRC plugin for controlling robots in the gazebo plugin.
|
||||
This plugin allows robots in gazebo to communicate with WPILib
|
||||
programs and enables the control of the robots.
|
||||
@@ -0,0 +1,25 @@
|
||||
Copyright
|
||||
Copyright (c) 2009 FIRST
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the FIRST nor the
|
||||
names of its contributors may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY FIRST AND CONTRIBUTORS``AS IS'' AND ANY
|
||||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY NONINFRINGEMENT AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FIRST OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
3
simulation/debs/frcsim-gazebo-plugins/frcsim-gazebo-plugins/debian/rules
Executable file
3
simulation/debs/frcsim-gazebo-plugins/frcsim-gazebo-plugins/debian/rules
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/make -f
|
||||
%:
|
||||
dh $@
|
||||
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
package gazebo.msgs;
|
||||
|
||||
/// \ingroup gazebo_msgs
|
||||
/// \interface Float64
|
||||
/// \brief A message for floating point data
|
||||
/// \verbatim
|
||||
|
||||
option java_outer_classname = "GzFloat64";
|
||||
|
||||
message Float64
|
||||
{
|
||||
required double data = 1;
|
||||
}
|
||||
|
||||
/// \endverbatim
|
||||
@@ -0,0 +1,5 @@
|
||||
frcsim-libwpilibsim-cpp (0.1-1) trusty; urgency=low
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Alex Henning <alex@thoriumrobotics.com> Wed, 06 June 2014 21:04:27 -0400
|
||||
@@ -0,0 +1 @@
|
||||
9
|
||||
@@ -0,0 +1,13 @@
|
||||
Source: frcsim-libwpilibsim-cpp
|
||||
Maintainer: Alex Henning <alex@thoriumrobotics.com>
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Standards-Version: 3.9.4
|
||||
Build-Depends: debhelper (>= 9)
|
||||
|
||||
Package: frcsim-libwpilibsim-cpp
|
||||
Architecture: i386 amd64
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, libboost-system-dev, libprotobuf-dev
|
||||
Description: Installs `libWPILibSim.so`.
|
||||
Install platform specific libWPILibSim library necessary to run C++
|
||||
frcsim programs.
|
||||
@@ -0,0 +1,25 @@
|
||||
Copyright
|
||||
Copyright (c) 2009 FIRST
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the FIRST nor the
|
||||
names of its contributors may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY FIRST AND CONTRIBUTORS``AS IS'' AND ANY
|
||||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY NONINFRINGEMENT AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FIRST OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/make -f
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_build:
|
||||
$(MAKE) allwpilib=../../../..
|
||||
|
||||
override_dh_auto_install:
|
||||
$(MAKE) DESTDIR=$$(pwd)/debian/frcsim-libwpilibsim-cpp allwpilib=../../../.. install
|
||||
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>edu.wpi.first.wpilibc.simulation</groupId>
|
||||
<artifactId>WPILibCSim</artifactId>
|
||||
<version>0.1.0</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>1.7</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>zip-cpp-sim-includes</id>
|
||||
<phase>compile</phase>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<target>
|
||||
<mkdir dir="${project.build.directory}/sim-includes/sim/include"/>
|
||||
<copy todir="${project.build.directory}/sim-includes/sim/include">
|
||||
<fileset dir="include"/>
|
||||
<fileset dir="../../networktables/cpp/include"/>
|
||||
<fileset dir="../../hal/include"/>
|
||||
</copy>
|
||||
<zip destfile="${project.build.directory}/${project.build.finalName}.zip"
|
||||
basedir="${project.build.directory}/sim-includes" />
|
||||
</target>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<version>1.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>zip-cpp-includes</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>attach-artifact</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifacts>
|
||||
<artifact>
|
||||
<file>${project.build.directory}/${project.build.finalName}.zip</file>
|
||||
<type>zip</type>
|
||||
</artifact>
|
||||
</artifacts>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
97
simulation/debs/frcsim.key
Normal file
97
simulation/debs/frcsim.key
Normal file
@@ -0,0 +1,97 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
Version: GnuPG v1.4.12 (GNU/Linux)
|
||||
|
||||
mQGiBEsnpscRBACyclffkMVkXXdtY2qTT2+B6HN4hBoUxBwZBULyHFuSP9lsB7wK
|
||||
16Hl5ZTu+oy+GegzzFRrHWxBLN9i67T0plNkqDJhWUrmXR7xvX+dFc+Qrl+uPR0i
|
||||
CY1NMnWwnFh01YtYb9NAlb3bLn8RLBH8Zo60i7wfwdW9Wi1mgzmUT/UI9wCg7y6R
|
||||
VmF4RjNWJ2WRdL/jVeAB8H0D/0xfePoYWrSGzOp7+Vl+xYo5TdSrzohUUnly6xla
|
||||
UIKwlBCG/jpQqKH17803GpkFyh5FxG1Db7VWsciDv7flcBLPtn75gU2fPHXL+gnv
|
||||
r1eJ+ugQwCl4/8d4iJ5TMXmHQOW2Pd0U47OmbZYNNgtA+lXhF8n8+6w3GRhqubLF
|
||||
/9b/A/4wH37bv1shLhdLpP+9WYHc8z9+jmStVUFdAGoD/n6vOpBX+GQYaEY5Y8RS
|
||||
Wf0DFhMF6CFYNZ2ngDyvPt53M2jU7hrxXIfs/b5bLMqG2et9M/avdEWGUKTsC7wu
|
||||
0zeGtD07r9EA3WDIhxN9QEGZAq5Q3NSbedMHIVE4Ynq7VNCdsrQ0SFBMSVAgKEhQ
|
||||
IExpbnV4IEltYWdpbmcgYW5kIFByaW50aW5nKSA8aHBsaXBAaHAuY29tPohgBBMR
|
||||
AgAgBQJLJ6bHAhsDBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQc9dwzaWQR7n4
|
||||
dQCghZgIpxuTC+GhiQIO0dK9wTlbMmoAoOB252fEOvf73v8Ya8qmN1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opx66VbzJL9YyEeTwvFClj2vM2iK2WS7MGfN3w/imZVvTb6/EtbB/4fO7
|
||||
YkQrGND+afvIlCNNc3+MhJ+eCDFy4cp7cAZDlo62mLDEVDGLbfw8qM+2xeykZC4k
|
||||
zw+otJrT+FR5O9y55RmX7mSWiyRC83mvL8fYEX2XUkkIH3IWxqM5OkZAi1EPqpo7
|
||||
XIx1Fz1wKp+hXQ==
|
||||
=rBdy
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
12
simulation/debs/frcsim/frcsim/Makefile
Normal file
12
simulation/debs/frcsim/frcsim/Makefile
Normal file
@@ -0,0 +1,12 @@
|
||||
prefix = /usr
|
||||
bindir = $(prefix)/bin
|
||||
|
||||
all:
|
||||
echo Should download files
|
||||
|
||||
clean:
|
||||
echo Cleaning
|
||||
|
||||
install: all
|
||||
mkdir -p $(DESTDIR)$(bindir)
|
||||
install frcsim $(DESTDIR)$(bindir)/frcsim
|
||||
5
simulation/debs/frcsim/frcsim/debian/changelog
Normal file
5
simulation/debs/frcsim/frcsim/debian/changelog
Normal file
@@ -0,0 +1,5 @@
|
||||
frcsim (0.1-1) trusty; urgency=low
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Alex Henning <alex@thoriumrobotics.com> Wed, 14 May 2014 21:04:27 -0400
|
||||
1
simulation/debs/frcsim/frcsim/debian/compat
Normal file
1
simulation/debs/frcsim/frcsim/debian/compat
Normal file
@@ -0,0 +1 @@
|
||||
9
|
||||
15
simulation/debs/frcsim/frcsim/debian/control
Normal file
15
simulation/debs/frcsim/frcsim/debian/control
Normal file
@@ -0,0 +1,15 @@
|
||||
Source: frcsim
|
||||
Maintainer: Alex Henning <alex@thoriumrobotics.com>
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Standards-Version: 3.9.4
|
||||
Build-Depends: debhelper (>= 9)
|
||||
|
||||
Package: frcsim
|
||||
Architecture: all
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, frcsim-gazebo-plugins, frcsim-gazebo-models, frcsim-eclipse-plugins
|
||||
Description: Installs everything necessary for FRC simulation with Gazebo.
|
||||
Package that installs everything necessary for FRC Simulation, including
|
||||
the gazebo plugin, gazebo models, eclipse-plugins and a wrapper script
|
||||
around Gazebo. This enables support for development of FRC robots with
|
||||
simulation.
|
||||
25
simulation/debs/frcsim/frcsim/debian/copyright
Normal file
25
simulation/debs/frcsim/frcsim/debian/copyright
Normal file
@@ -0,0 +1,25 @@
|
||||
Copyright
|
||||
Copyright (c) 2009 FIRST
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the FIRST nor the
|
||||
names of its contributors may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY FIRST AND CONTRIBUTORS``AS IS'' AND ANY
|
||||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY NONINFRINGEMENT AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FIRST OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
3
simulation/debs/frcsim/frcsim/debian/rules
Executable file
3
simulation/debs/frcsim/frcsim/debian/rules
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/make -f
|
||||
%:
|
||||
dh $@
|
||||
1
simulation/debs/frcsim/frcsim/debian/source/format
Normal file
1
simulation/debs/frcsim/frcsim/debian/source/format
Normal file
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
4
simulation/debs/frcsim/frcsim/frcsim
Executable file
4
simulation/debs/frcsim/frcsim/frcsim
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
export GAZEBO_PLUGIN_PATH="${GAZEBO_PLUGIN_PATH}:/usr/lib/frcsim/plugins"
|
||||
export GAZEBO_MODEL_PATH="${GAZEBO_MODEL_PATH}:/usr/share/frcsim/models"
|
||||
gazebo $@
|
||||
30
simulation/debs/install.sh
Executable file
30
simulation/debs/install.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
function install-frcsim {
|
||||
# Add Gazebo Repository and Key
|
||||
echo "deb http://packages.osrfoundation.org/gazebo/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-latest.list
|
||||
wget http://packages.osrfoundation.org/gazebo.key -O - | apt-key add -
|
||||
|
||||
# Add FRCSim Repository and Key
|
||||
echo "deb http://users.wpi.edu/~adhenning/frcsim `lsb_release -cs` main" > /etc/apt/sources.list.d/frcsim-latest.list
|
||||
wget users.wpi.edu/~adhenning/frcsim.key -O - | apt-key add -
|
||||
|
||||
# Update and install frcsim and its dependencies
|
||||
apt-get update
|
||||
apt-get install -y frcsim
|
||||
|
||||
# Done
|
||||
python -c "raw_input(\"Installation Finished (Hit enter to exit) \")"
|
||||
}
|
||||
|
||||
if [ "$1" == "ROOT" ]
|
||||
then
|
||||
install-frcsim
|
||||
elif [ "$1" == "INSTALLER" ]
|
||||
then
|
||||
SUDO_ASKPASS=/usr/bin/ssh-askpass sudo bash -c "$0 ROOT"
|
||||
else
|
||||
gnome-terminal --window --hide-menubar --title "FRCSim Installer" -e "$0 INSTALLER"
|
||||
fi
|
||||
|
||||
|
||||
12
simulation/debs/repository/conf/distributions
Normal file
12
simulation/debs/repository/conf/distributions
Normal file
@@ -0,0 +1,12 @@
|
||||
Origin: users.wpi.edu
|
||||
Label: FRCSim
|
||||
Codename: trusty
|
||||
Architectures: i386 amd64 source
|
||||
Components: main
|
||||
Description: Repository for simulating FRC robots using WPILibSim and the Gazebo simualtor.
|
||||
SignWith: yes
|
||||
DebOverride: override.trusty
|
||||
DscOverride: override.trusty
|
||||
DebIndices: Packages Release . .gz
|
||||
UDebIndices: Packages . .gz
|
||||
DscIndices: Sources Release . .gz
|
||||
3
simulation/debs/repository/conf/options
Normal file
3
simulation/debs/repository/conf/options
Normal file
@@ -0,0 +1,3 @@
|
||||
verbose
|
||||
ask-passphrase
|
||||
basedir .
|
||||
0
simulation/debs/repository/conf/override.trusty
Normal file
0
simulation/debs/repository/conf/override.trusty
Normal file
Reference in New Issue
Block a user