This project aims to create lightweight applications for the IvP solver from MOOS-IvP.
Rather than using "bridges" or "gateways" to connect middlewares, this project creates first-class applications for IvP and the maritime behaviors in the middleware of choice (Goby, ROS, etc.).
One way to think of this project is as a generator for the equivalent of the MOOS-based pHelmIvP in your pub/sub middleware of choice.
- src: Source code
- lib: Library source
- interface: Interface messages (Protobuf)
- helm: The helm, pHelmIvP without MOOS (
ivpico::helm::Helm), and behavior files
- bin: Binary source
- bhv:
ivpico_bhv, for behavior files (.bhv,.bhv.yml) - goby: Goby middleware app (
goby_helm_ivp) - ros: ROS middleware node
- bhv:
- test: Tests, including replays of MOOS-IvP missions (
test/missions)
- lib: Library source
- launch: Example missions
- share/ivpico: The JSON Schema of
.bhv.ymlfiles (bhv.schema.json)
This section was written by Claude.
init.sh installs the Ubuntu packages needed to build IvPico:
- openocean-messages, for the
NavigationandControlSetpointmessages, and MOOS-IvP's helm libraries built without MOOS (GobySoft'sivp-without-moos), for the IvP solver and behaviors. - Goby3, for the Goby app.
init.sh --no-gobyleaves Goby3 out, andbuild.shthen skips the Goby app.
All of these come from Open Ocean Software's continuous builds, with its releases for what they depend on (DCCL, MOOS, ...), at apt.oceansoft.org. init.sh adds both if apt can't install the packages already.
yaml-cpp (libyaml-cpp-dev) is optional: without it, behaviors come only from .bhv files or the helm configuration (-Denable_yaml=OFF leaves it out).
build.sh then builds IvPico in build/ and installs it into build/usr.
./init.sh
./build.sh
ctest --test-dir build
build.sh passes any arguments on to IvPico's CMake, and BUILD_DIR overrides the build directory. Add build/usr/bin to your PATH to run the installed apps.
IvPico versions are MAJOR.MINOR.PATCH (project() in CMakeLists.txt, releases tagged vX.Y.Z), and the shared libraries' SONAME is MAJOR.MINOR (e.g. libivpico_helm.so.0.1). Patch releases keep the ABI of their series; a release that breaks it needs the next minor version, and with it a new SONAME.
scripts/abi_check.sh (needs abigail-tools) compares the tree against the latest release of its series, and CI runs it on every push. Reviewed false positives go in scripts/abi.supp.
Outline, to be written:
ivpico::helm::Helm: construct from aHelmConfig,handle()the inputs,iterate()at the helm's rate.- Each iteration's
Output(solution, status, postings, behavior events, visualizations, offboard messages, life events, objective functions, configuration) and its pHelmIvP equivalent. - Field levels (CORE, ADVANCED, DEVELOPER) and what each adds to
StatusandHelmConfig. - Differences from pHelmIvP: the MOOSDB echo, rejournal, standby helm.
Outline, to be written:
- Three ways to give the helm its behaviors (
HelmConfig):.bhvfiles, MOOS-IvP's own format and the reference;.bhv.ymlfiles: the same content as YAML, checked againstshare/ivpico/bhv.schema.json;behaviors: the same structure inline in the helm configuration.
- How each is read: everything is converted to
.bhvtext for MOOS-IvP's Populator; with any YAML or inline behaviors, files are read in the order given, not sorted. - The
.bhv.ymlformat:initialize,initialize_deferred,modes,behaviors; common parameters as keys, the behavior's own underparams; a list where a parameter repeats;x-keys and merges (<<: *name) for shared settings (merges are shallow, so a behavior'sparamsreplaces a mergedparams). Example:launch/goby/alpha/config/alpha.bhv.yml. ivpico_bhv:convert(YAML to.bhv),import(.bhvto YAML),check(builds the behaviors and reports problems at their YAML line),schema.- Editor setup: the
# yaml-language-server: $schema=...lineimportwrites.
This section was written by Claude.
goby_helm_ivp runs the helm in Goby3. It publishes and subscribes the ivp.interface messages on the ivpico::helm::* groups (src/bin/goby/groups.h), and can stand in for the MOOS helm behind goby_frontseat_interface (frontseat { enable: true }). goby_helm_ivp -e prints an example configuration.
Contacts come in as Navigation with self: false, or as NODE_REPORT variables. The helm raises pContactMgrV20's alerts itself (configured in helm.contact_manager), so contact behaviors such as collision avoidance spawn without a separate contact manager.
launch/goby/alpha runs the alpha mission against Goby's basic frontseat simulator, shown on Liaison's map: see its README.
The libraries (src/lib) are LGPL 2.1 or later, and the binaries and tests (src/bin, src/test) are GPL 2 or later. The helm's ports of pHelmIvP and pContactMgrV20 (src/lib/helm/helm.cpp, contact_manager.{h,cpp} and contacts/) are GPL 3 or later, as is MOOS-IvP, whose helm libraries IvPico links. See COPYING.