Commit Graph

65 Commits

Author SHA1 Message Date
Jonas Vautherin 93c1ad3103 sitl: add possibility to not run gazebo when running make 2017-10-04 15:38:37 +02:00
Daniel Agar 01b3e6fd25 NuttX upgrade cmake wrapper (#7873)
* NuttX cmake

* px4_macros:Pass the stringified predicate as second arg to static assert

   CC_ASSERT mapes to the c++ static_assert or provides the same
   funtionality for c via the other macros. The c++ static assert
   takes 2 argumants the prdicate and a message. This fixes the
   lacking second argument.

* Updated nuttx and apps submodule to upstream nuttx 7.21+==master

   This is the latest uptake of upstream nuttx and apps.

* ROMFS generate with xxd instead of objcopy

* delete nuttx-patches

* NuttX update submodules to latest px4_nuttx-master

* fix nuttx apps and board dependency

* docker_run update to latest container 2017-08-29

* cmake ROMFS portable sed usage

* NuttX update submodules to latest px4_nuttx-master
2017-09-29 10:13:51 -04:00
Daniel Agar 3498fe0c6f delete sdlog2 EKF2 replay (#7982) 2017-09-19 10:20:41 -04:00
Lorenz Meier 587f4d8f33 jMAVSIm: Explicitely configure to 500 Hz 2017-08-01 19:50:35 +02:00
Lorenz Meier 292dce04aa Gazebo client: Reduce priority to avoid affecting other processes 2017-08-01 19:50:35 +02:00
Lorenz Meier a6ef6c6e33 SITL Launcher: gzserver must be running when gzclient connects 2017-06-27 11:59:29 +02:00
Beat Küng 037280c17d sitl: add iris_replay startup script, handle $replay_mode in sitl_run.sh
usage:
export replay_mode=ekf2
export replay=<abs_path_to_log.ulg>
make posix none
2017-03-04 22:47:54 +08:00
James Goppert 7659402fdb WIP: valgrind runtime analysis and fixes (#6521)
* Fix several valgrind identified mem leaks

* Added callgrind target.

* px4_posix_tasks use nullptr
2017-02-17 12:36:52 -05:00
Janis Dzerve 3c270ae2a8 simulator: Do not kill every process with string 'px4' in the name 2017-01-20 09:41:16 +01:00
Anton Matosov 6d3116e30b Implement the way to run posix simulator directly from IDE without the need to reconfigure command lines, but use runner created via CMake
Steps to debug:
 * Run gazebo (or any other sim) server and client viewers via the terminal: `make posix_sitl_default gazebo_none_ide`
 * In your IDE select `px4_<mode>` target you want to debug (e.g. `px4_iris`)
 * Start debug session directly from IDE

This approach significantly reduces the debug cycle time because simulator (e.g. gazebo) is always running in background and you only re-run px4 process which is very light.
2016-12-26 15:38:25 +01:00
Lorenz Meier 1926c7bca7 Revert "Implement the way to run posix simulator directly from IDE without the need to reconfigure command lines, but use runner created via CMake"
This reverts commit fff4934743.
2016-12-12 22:32:34 +01:00
Anton Matosov fff4934743 Implement the way to run posix simulator directly from IDE without the need to reconfigure command lines, but use runner created via CMake
Steps to debug:
 * Run gazebo (or any other sim) server and client viewers via the terminal: `make posix_sitl_default gazebo_none_ide`
 * In your IDE select `px4_<mode>` target you want to debug (e.g. `px4_iris`)
 * Start debug session directly from IDE

This approach significantly reduces the debug cycle time because simulator (e.g. gazebo) is always running in background and you only re-run px4 process which is very light.
2016-12-10 12:48:53 +01:00
Julian Oes cf9945ecdc sitl_run.sh: env variable NO_PXH for deamon mode
This allows to set the environment variable NO_PXH to start SITL without
the interactive pxh> shell. For this, px4 is called with the -d arg
which sets it to deamon mode.

This feature is handy to script sitl_run.sh.
2016-11-25 17:51:50 +01:00
Beat Küng 1eca97757c sitl_run.sh: fix $rootfs not set (needed for efk2 replay) 2016-09-29 10:53:33 +02:00
Carlo Wood 03d176d097 Bug fixes, typos, indentation.
Over time I made a few changes unrelated to what I'm really working on.
These changes are hereby committed first. The bug fixes are related to
what I'm doing in that I need them to be fixed for future commits.

Tools/sitl_run.sh: rename label to rcS_dir and fix usage help.
cmake/common/px4_base.cmake: Remove the check on OUT_UNPARSED_ARGUMENTS,
  and a few typos and indentation issues.
cmake/configs/posix_sitl_replay.cmake: Set the correct variable
  (config_sitl_rcS_dir) to the correct directory.
cmake/nuttx/px4_impl_nuttx.cmake: typos and indentation issues,
  and removal of a redundant FORCE (INTERNAL implies FORCE).
cmake/posix/px4_impl_posix.cmake: typos and indentation issues.
cmake/qurt/px4_impl_qurt.cmake: typos and indentation issues.
src/modules/mavlink/mavlink_ftp.cpp : possible strict-aliasing breakage.

NOTES

The second argument passed to sitl_run.sh is the value of
config_sitl_rcS_dir. This fact is missing from the usage help.
I renamed 'label' to 'rcS_dir' to better reflect this.
Also, for the 'replay' config the wrong variable was set causing
the call to sitl_run.sh to skip an argument and fail (ie the
debugger was passed as rcS_dir and so on).

The check on OUT_UNPARSED_ARGUMENTS in px4_parse_function_args
basically causes every passed IN variable to be REQUIRED and is
therefore a bug. The test for the presence of the REQUIRED arguments
follows directly after and is sufficient for this job. This bug went
unnoticed because currently every argument to OPTIONS, ONE_VALUE,
and MULTI_VALUE is actually passed to the function(s) calling
px4_parse_function_args (them being REQUIRED or not).

The changes in mavlink_ftp.cpp are to avoid a possible aliasing bug
and (mostly) to avoid the compiler warning/error: dereferencing type-
punned pointer will break strict-aliasing rules [-Werror=strict-aliasing].
2016-09-13 16:31:08 +02:00
Daniel Agar 31ddf6bdd9 sitl_run.sh use full path to jmavsim_run.sh 2016-09-13 11:30:38 +02:00
Beat Küng e7afecb544 Tools: add separate jmavsim_run.sh script
It is useful to run jmavsim separately, for example when debugging mainapp
separately, or running some other external tool on mainapp (like heap
analysis)
2016-09-13 11:30:38 +02:00
Lorenz Meier f511d49cc2 Improvements to SITL to make paths more flexible. (#5181) (#5255)
* Path cleanup for SITL.

* Restructured sitl scripts dir.

* Set integration tests to use ekf2 for vtol.

* Fix sitl paths for mac.
2016-08-25 21:47:45 +02:00
Julian Oes 14ed65f0e4 sitl_run.sh: use ps instead of jps (#5376)
The tool jps does not seem to be available on macos Java.
2016-08-24 17:07:14 +02:00
Lorenz Meier 102f5b54d7 Revert "Improvements to SITL to make paths more flexible. (#5181)"
This reverts commit 699b6a2cb3.
2016-08-05 21:29:49 +02:00
James Goppert 699b6a2cb3 Improvements to SITL to make paths more flexible. (#5181) 2016-08-05 06:23:59 -04:00
James Goppert b6a9ff756c Rename mainapp to px4. 2016-07-29 11:05:01 +02:00
Daniel Agar d804f5727e run tests in posix sitl with gazebo 2016-05-13 13:01:42 +02:00
Andreas Antener cbc94fbe8c first attempt to run mavros tests in new sitl environment 2016-04-20 11:05:29 +02:00
Lorenz Meier 55e4e75a4f SITL: Generate SDF from xacro on every build 2016-04-08 18:20:59 -07:00
Lorenz Meier 079151b3fe New strategy to build and run jMAVSIM 2016-04-05 19:09:29 -07:00
Roman 1ce99e3b96 ekf2 replay: some cosmetics 2016-04-05 21:24:11 +02:00
Roman bd4a0e30de ekf2 replay: allow user to change parameters 2016-04-05 21:24:11 +02:00
Lorenz Meier 34b6354fa6 Expand SITL run 2016-02-27 11:48:31 +01:00
Lorenz Meier 23e9693641 Allow chrooting the application 2015-12-22 09:48:11 +01:00
Lorenz Meier 8cc54ac661 SITL run: Request best scheduling for SITL processes - next up is lockstep 2015-12-01 13:01:23 +01:00
Lorenz Meier fb24a54ca4 SITL run: Always execute cleanup action 2015-11-23 13:51:18 +01:00
Lorenz Meier 23cfe5c41f SITL run: Abort on first error 2015-11-23 13:38:05 +01:00
Lorenz Meier 4ae15e3d84 SITL run: Better Gazebo output, less CMake warnings 2015-11-23 12:40:33 +01:00
Lorenz Meier a4a9ff7046 Fix debug targets for sitl run 2015-11-21 17:43:07 +01:00
tumbili 2f0b24feab cmake: replace vtol model with tailsitter model 2015-11-18 16:11:10 +01:00
Youssef Demitri 199f6478ee enable online model lookup in gazebo 2015-11-13 16:29:26 +01:00
jgoppert 68e4b33167 Added valgrind to sitl. 2015-11-07 11:49:58 -05:00
Lorenz Meier 3d13e771a8 Support runs without simulation 2015-10-30 16:33:19 +01:00
Lorenz Meier a394dd5b0d Add gazebo, gazebo_iris and gazebo_vtol targets 2015-10-29 10:35:35 +01:00
tumbili 218f11f54b kill gazebo properly 2015-10-27 13:14:17 +01:00
jgoppert 4241e526aa Updated sitl scripts for LPE. 2015-10-26 16:03:22 -04:00
tumbili 1767acd1e9 use correct startup scipt depending on simulator 2015-10-26 12:24:27 +01:00
James Goppert dab48553c7 Added export to gazebo variables. 2015-10-25 19:25:18 -04:00
Lorenz Meier 9cbcca1f49 Fix Gazebo handling 2015-10-25 18:25:37 +01:00
jgoppert 7d9c6592fd Remove bash debugging. 2015-10-25 17:58:16 +01:00
jgoppert f831cc6cfa Don't kill if jmavsim not found. 2015-10-25 17:58:16 +01:00
jgoppert a23ba97f3f sitl bash fix for pid recording 2015-10-25 17:58:16 +01:00
jgoppert a688c89460 Fixed kill command for java. 2015-10-25 17:58:16 +01:00
jgoppert c520a678a6 More intelligent jmavsim killing. 2015-10-25 17:58:16 +01:00