Commit Graph

213 Commits

Author SHA1 Message Date
Alex Lin
4c471eb32d Introduce Trick ROS publish/subscribe examples.
Introducing a pubish and subscribe example sim.  The publisher includes
a ROS msg file that is processed by ROS into a header file.

refs #190
2016-02-26 09:39:42 -06:00
Alex Lin
5a7cd1839b Split test sims and fun sims into separate directories.
I created an ODE directory and moved the ODE sims into it.  I moved
the Ball++ models into SIM_Ball++_L1 and flattened the directory
structure.

refs #191
2016-02-25 16:04:27 -06:00
Alex Lin
d884370175 Split test sims and fun sims into separate directories.
Moved SIM_segments to test.

refs #191
2016-02-23 16:53:19 -06:00
Alex Lin
9ddc786ace Split test sims and fun sims into separate directories.
Moved most of the rest of the sims to test.

refs #191
2016-02-23 16:19:30 -06:00
John M. Penn
cf0ac7a5a1 Add SIM_ball_default_data to the Consolidated Ball directory and also add the required .d files. refs #191 2016-02-23 15:36:30 -06:00
Alex Lin
0144cc121a Split test sims and fun sims into separate directories.
Moved more sims into the test directory.

refs #191
2016-02-23 14:38:49 -06:00
Alex Lin
0c84b8ad08 plit test sims and fun sims into separate directories
Moved SIM_events, test_dp, test_dr, and abstract.

refs #191
2016-02-23 13:48:59 -06:00
John M. Penn
45e515cdb3 Consolidate the C Ball sims into one directory. refs #191 2016-02-23 12:03:13 -06:00
John M. Penn
9321595d2c Merge branch 'master' of https://github.com/nasa/Trick 2016-02-23 11:45:28 -06:00
John M. Penn
51447119b4 Consolidate all of the Cannon sims into one directory. refs #191 2016-02-23 11:44:18 -06:00
Alex Lin
cf4bbfdfe8 Split test sims and fun sims into separate directories.
Moved the 2 thread directories.

refs #191
2016-02-23 10:46:38 -06:00
Alex Lin
90fd0ff9f8 Split test sims and fun sims into separate directories.
Moved SIM_test_ip and a couple of other sims that depend on the same model set
to a new test directory.  I'm doing a couple of sims at a time.

refs #191
2016-02-23 10:23:55 -06:00
John M. Penn
950e319c1b move Satellite models to SIM_satellite and fix graphics makefile 2016-02-22 17:48:06 -06:00
John M. Penn
0a40189388 move parachute models to SIM_parachute and fix up S_overrides.mk 2016-02-22 12:41:20 -06:00
John M. Penn
486cc10784 mv helios models to SIM_sun/models/Sun 2016-02-22 12:22:27 -06:00
John M. Penn
9e481703a1 Move the Wheelbot models to the SIM_wheelbot directory 2016-02-22 11:59:11 -06:00
John M. Penn
da08efe546 Fixes #185 Add SIM_wheelbot 2016-02-18 16:14:44 -06:00
Alex Lin
446fa129d4 Revert "Functions with enumerated default arguments bad"
This reverts commit 20dc7b1386.
2016-02-18 10:59:37 -06:00
Alex Lin
4ab940a691 Revert "Functions with enumerated default arguments cause bad python code to be generated"
This reverts commit 30fbd682ee.
2016-02-18 10:59:36 -06:00
Alex Lin
a9e4dfabcc Revert "Functions with enumerated default arguments cause bad python code to be generated"
This reverts commit 612591ce96.
2016-02-18 10:59:26 -06:00
Alex Lin
612591ce96 Functions with enumerated default arguments cause bad python code to be generated
OMG, more data recording files.

refs #176
2016-02-18 10:48:14 -06:00
Alex Lin
30fbd682ee Functions with enumerated default arguments cause bad python code to be generated
Found a lot more data recording groups that have the same problem.

refs #176
2016-02-18 10:21:12 -06:00
Alex Lin
20dc7b1386 Functions with enumerated default arguments bad
Found a side effect of SWIG's "compactdefaultargs".  It highlighted an
error we had in creating the data_record group in our ball sim.  We did
not release the memory from python and it was causing a double free
at exit.

refs #176
2016-02-18 09:56:11 -06:00
Alex Lin
b9c871328b Introduce Open Dynamics Engine examples
Added a 3 wheeled car example from the ODE demos.  I collapsed all of the separate classes
handling the world, objects, and drawings into a single class.  Each world is different
and just including that with the objects for these simple examples is easier.  Same goes
for the drawing.

refs #172
2016-02-02 11:19:25 -06:00
Alex Lin
fa29891ded Introduce Open Dynamics Engine examples
Changed the regular expressions that removes comments in convert_swig to
try and handle C style comments found in multiline #define statements.

Also added a TRICK_ICG_NOCOMMENT line to SIM_ode to stop ICG from
trying to process non-Trick comments in the ODE directory.

refs #172
2016-01-29 09:43:43 -06:00
Alex Lin
68ffd04dff Introduce Open Dynamics Engine examples
Took the ODE bouncing ball tutorial sim and interfaced it within Trick.  Created classes to handle
interfacing with ODE and the DrawStuff graphics that comes with ODE.  Created classes
to contain the ball and the drawstuff graphics for the ball.

refs #172
2016-01-29 09:15:00 -06:00
Alex Lin
1afac18399 Add additional thread synchronization mechanisms
Created a thread trigger container class to hold all of the various thread triggering
mechanisms.  I wanted to avoid allocating/freeing trigger mechanisms.  I added
an eventfd and futex trigger types.  Updated SIM_threads_simple test sim to use
show how to set the thread trigger type.

refs #148
2015-12-02 10:35:25 -06:00
Alex Lin
57c76041f5 Get the value of a variable not parsed by SWIG in python
Wrote a python routine called get_value_by_ref_name that takes
a variable name string as an argument.  The string is passed to
ref_attributes to find the address and returns a REF2 structure.  The REF2
structure is passed to ref_to_value and the type and value of the variable
is returned in a structure.  We call vval_<type> to extract the raw value
from the structure and return that to python space.

Made a couple of other bug fixes in the FieldVisior and cpp input file
example found while investigating this issue.

refs #123
2015-09-18 09:03:24 -05:00
John M. Penn
788adec487 more tweaks to SIM_cannon_analytic doc ans images 2015-09-09 17:42:57 -05:00
John M. Penn
23f9aad55b Updates to SIM_cannon_analytic README 2015-09-08 17:05:37 -05:00
John M. Penn
120ccb49cd Beautification tweaks to SIM_cannon_analytic README 2015-09-05 17:12:52 -05:00
John M. Penn
9035286609 Create README for SIM_cannon_analytic 2015-09-05 15:42:41 -05:00
John M. Penn
d558dbd73d Add cannon_aero.dr to SIM_cannon_aero 2015-09-04 15:39:39 -05:00
John M. Penn
4214e32d74 restore cannon_jet_proto.h so swig doesn't have problems. Tutorial will need to be modified. 2015-09-04 14:26:43 -05:00
John M. Penn
d4cd131fa1 Add SIM_cannon_jet to sim testing. 2015-09-04 13:28:54 -05:00
John M. Penn
d0e6eb1617 Restore SIM_cannon_jet as decsribed in the tutorial. 2015-09-04 13:06:12 -05:00
John M. Penn
d160d70990 Remove SIM_jet_call, SIM_jet_event, and SIM_jet_read directories. 2015-09-04 11:13:44 -05:00
John M. Penn
6492e2509a Add check that TRICK_HOME is set in S_overrides.mk. 2015-09-04 11:01:48 -05:00
John M. Penn
abb95b8b6c Restore SIM_cannon_aero to its former glory. 2015-09-03 19:08:55 -05:00
John M. Penn
2683c17e0e Remove SIM_aero_curve and SIM_aero_fast directories 2015-09-03 18:47:10 -05:00
John M. Penn
fecf03aa94 Delete the SIM_baseball directory. It's cruft. 2015-09-02 18:53:38 -05:00
John M. Penn
74f8498404 Escaped underscores to make the doc look nicer. Ref #108 2015-08-19 14:01:36 -05:00
John M. Penn
e7185a152e Add clarifications and consistency in description and plots. 2015-08-19 12:59:44 -05:00
John M. Penn
62f3b558e0 Add SIM_sun README ( #108 ) 2015-08-13 14:41:21 -05:00
John M. Penn
8fb1b72011 Ref #101 Add README.md 2015-08-04 17:25:50 -05:00
John M. Penn
ff93304b9f Add picture to SIM_parachutist README 2015-08-04 17:13:49 -05:00
Alex Lin
a5929dbe6c Move search for library dependencies to make_makefile
Moved the search for all library dependencies into make_makefile.
Made a couple of minor clean up edits as well.

refs #92
2015-07-24 16:16:22 -05:00
Alex Lin
b3d1a1d162 Trick should not modify TRICK_CFLAGS and TRICK_CXXFLAGS
Well sims compiled, but I forgot to test if Trick itself
would compile.  It didn't.  Added TRICK_SYSTEM_CFLAGS and
TRICK_SYSTEM_CXXFLAGS where needed.

refs #90
2015-07-22 15:34:54 -05:00
Alex Lin
d72555f3cc Split CP up into components that can be called individually
After about 6 unsuccessful builds I decided to run the unit tests
before checking in these files.  I fixed the integrator unit
test that was failing from a previous issue along with problems
with the sims.

refs #86
2015-07-21 15:10:40 -05:00
Alex Lin
5a77824638 Create a separate directory for simulation compilation.
Functioning build directory on Linux.  Everything is going into the build directory.
All files for all steps use the full path.  this change removes the need for us to
call depend_objs to fix makefile dependencies.  Changed the makefile rules to use
more pattern rules reducing the size of make_makefile.pm and the makefile too.
Changed the output of make to show short commands for each compile line.  Setting
the variable TRICK_VERBOSE_BUILD in the environement, command line, or in S_overrides.mk
will change the output to the full printout.

refs #80
2015-07-07 14:42:58 -05:00
Alex Lin
44736be398 Remove dupilcate stand-alone libraries
The test programs now need more than just -ltrick.

refs #71
2015-06-24 16:54:15 -05:00
Alex Lin
d3acfa5fc0 Test code does not work with new directory locations.
Adjusted all of the source code to point to the header files in their new
locations.  Adjusted the makefiles for the header locations as well.
Added .gitignore files in the test directories to ignore test object code.
2015-06-22 16:11:08 -05:00
Alex Lin
83e68ef26e JITEvents are not checkpointable
JITEvents all need C bindings.  They need to be extern "C"ed if they are in C++.

Refs #53
2015-05-14 13:55:09 -05:00
Alex Lin
24fe5adaec JITEvents are not checkpointable
Changed the way JITEvents are created and handled. Instead of taking a function pointer directly we save a name of a function to the JITEvent class.  The class will dynamically look up a function that matches the name both during event creation and during checkpoint restart.

Fixes #53
2015-05-14 13:41:17 -05:00
John M. Penn
1769db5e33 A few touchups to SIM_parachute README. Fix #36 2015-03-27 16:59:30 -05:00
John M. Penn
ef5bbef665 Fix heading in SIM_parachute README. Fix #36 2015-03-27 16:35:22 -05:00
John M. Penn
68fcb0e885 Alas Github Markup doesn't appear to like MathML. Fixes #36 2015-03-27 16:26:34 -05:00
John M. Penn
c47e650d1e Wrote a README file that clearly describes the simulation. Also updated the simulation code to be clear and consistent with the documentation. Fixes #36 2015-03-27 15:56:15 -05:00
John M. Penn
6f989c9157 Implement Felix Baumgartner parachutist simulation. Fixes #32 2015-03-25 16:23:59 -05:00
Alex Lin
14a75508a3 Cleaning up once include variables and copyright cleanup.
Changed all header file once include variables to follow the same naming
convention and not start with any underscores.  Also deleted old
incorrect copyright notices.  Also removed $Id: tags from all files.

Fixes #14.  Fixes #22.
2015-03-23 16:03:14 -05:00
Alex Lin
2fab93da66 Added rules in the makefile to include er7_utils and fermi-ware if they exist. If they don't exist then the code that depends on them will not be compiled.
Also added the java GUIs to the default build rule.

Finally I added a lot of .gitignore files to ignore generated files.

Fixes #5
2015-03-03 16:08:54 -06:00
Alex Lin
35bc121403 don't run unit tests that require er7_utils. Fixes #2 2015-03-02 16:19:38 -06:00
Alex Lin
f0c594f841 Initial commit of everything. 2015-02-26 09:02:31 -06:00