C++ Module: constrainedAttitudeManeuver

Executive Summary

This module searches a grid of spacecraft attitudes for a path subject to keep-in and keep-out pointing cones. It fits a spline to the selected waypoints and publishes an attitude reference for a tracking controller. A fitted reference can cross a cone boundary even when every waypoint satisfies the pointing constraints.

Message Connection Descriptions

The following diagram and table list all the module input and output messages. The module message connection is set by the user from Python. The message type contains a link to the message structure definition, while the description provides information on what this message is used for.

constrainedAttitudeManeuver module input and output messages

Module I/O Messages

Msg Variable Name

Msg Type

Description

attRefOutMsg

AttRefMsgPayload

Output Attitude Reference Message.

attRefOutMsgC

AttRefMsgPayload

C-wrapped Output Attitude Reference Message.

scStateInMsg

SCStatesMsgPayload

Required spacecraft state. Its source must have written a message before reset.

vehicleConfigInMsg

VehicleConfigMsgPayload

Required vehicle configuration supplying the inertia tensor. Its source must have written a message before reset.

keepOutCelBodyInMsg

SpicePlanetStateMsgPayload

Optional keep-out planet state.

keepInCelBodyInMsg

SpicePlanetStateMsgPayload

Optional keep-in planet state.

Module Assumptions and Limitations

The module, in its current form, allows to only include one keep-out and one keep-in celestial object(s). Multiple boresights (up to 10) can be specified as either keep-in or keep-out body directions. Each category has ten slots. Appending beyond that limit raises an error. Both append methods normalize finite, nonzero body-frame directions. Cone half-angles are measured from the boresight and must be in \([0, \pi]\) radians, including both endpoints. Both cone types include their rim within angular roundoff. A point on the rim satisfies a keep-in constraint and violates a keep-out constraint. When setting the public boresight arrays directly, supply unit vectors. The planner checks the active entries when reading inputs and when building the grid. The keep-out constraint is considered respected when all the keep-out body-fixed boresights are outside of the keep-out zone simultaneously. The keep-in constraint is satisfied when at least one keep-in body-fixed direction is inside the keep-in zone. Each category is active only when it has a boresight and its celestial-body message is linked. An active category requires a written message at reset and a finite, nonzero separation between the spacecraft and the celestial body. Inertial cone axes supplied directly must also be finite and nonzero.

GenerateGrid() reclassifies both endpoint attitudes using the current boresights and the last-read celestial-body directions. Call ReadInputs() before a direct rebuild after enabling or disabling a category, after replacing a source even if it stays linked, or to use updated spacecraft or celestial-body positions. Reading inputs invalidates the previous grid and reference. effortBasedAStar(), spline(), and effortEvaluation() use cached spacecraft inputs and require a successful ReadInputs(). If a read fails, correct the input and read again. Reset() refreshes the inputs automatically.

A target attitude that violates a pointing constraint causes planning to fail. An initially noncompliant attitude raises a warning so the planner can search for a path out of the violation. The remaining waypoints satisfy the cones evaluated with the directions read at reset. The User Guide describes how these checks apply to the fitted reference.

The supported grid refinement range is 2 <= N <= 20. With the no-argument constructor, set N before building the grid. Its initial value is zero (unset). Grid generation validates the current value, including changes made after construction, and raises an error outside this range. The planner also raises an error rather than overflowing its fixed storage if a node would have more than 52 neighbors. Search and path storage grow dynamically with the graph. NodeList.N is the read-only active node count in Python. Use append(), pop(), and clear() to change the entries. Python append() requires a Python-owned node. The list retains it until its last entry is removed. The search sets each node’s predecessor, backPointer, which is read-only in Python. For C++ callers, NodeList::list is now a std::vector<Node*>. Use the list methods to populate it. Indexed access to active entries is unchanged; use list.data() where a raw pointer to the entries is required. Do not retain pointers to the entry storage across list changes. You can assign a path containing only Python-owned nodes to another planner. A generated path borrows nodes from its planner’s grid, so copying it raises an error. Use returnPathCoord() to copy its coordinates. NodeList.pop() and NodeList.swap() require indices within the active list. returnPathCoord() returns 1000 for an invalid waypoint index or coordinate axis.

When grid generation clears the previous grid and path, it also resets the endpoint keys (keyS and keyG). Each component is invalidGridIndex from construction until an endpoint pair is selected, and again if a rebuild finds no constraint-free node. In that case, initialization raises an error before graph search. This means the sampled grid cannot support planning; it does not prove that no continuous maneuver exists. Review the constraints or choose another supported refinement level. Direct calls to AStar() and effortBasedAStar() require a successful grid build. After changing N, call GenerateGrid() again before running either search directly. Reset() rebuilds the grid automatically.

Rebuilding the grid or starting a search discards previously prepared waypoints and fitted output. The planner also discards them when a NodeList method or assignment to path changes the node sequence. After a direct search or path-list edit, call pathHandle() and then spline() to fit the new path. Changing a node’s sigma_BN in place bypasses the list, so call both methods before querying that path. When editing Input directly, supply one value per waypoint in each coordinate array and in any explicit time array. Supply elapsed seconds starting at zero, with finite, strictly increasing times. Distance-based timing requires distinct consecutive waypoints. A least-squares fit reserves one control point for each endpoint position and prescribed derivative. The remaining control points cannot outnumber the interior waypoints. Each prescribed endpoint acceleration requires velocity at that same endpoint. If weights are supplied, provide one per waypoint. Interior weights must be finite and nonnegative. A zero interior weight omits that waypoint’s residual from the least-squares objective. The remaining weighted waypoints must still determine all free control points. Output.getData() and Output.getStates() raise an error if the fit has been cleared. computeTorque() and computeTorqueNorm() require an index in the current fitted samples. effortEvaluation() requires at least two time samples and one value per time sample in each attitude, first-derivative, and second-derivative component. The cached pathCost is NaN until Reset() accepts a fitted reference.

The start and goal must represent different physical attitudes, including when expressed in different MRP sets. They must also map to different sampled attitudes. Antipodal nodes on the MRP unit sphere represent the same sampled attitude. If the endpoints map to the same sampled attitude, initialization raises an error before graph search. A finer grid may separate distinct but nearby endpoints.

Even when both endpoints are free, the sampled grid can be disconnected. Both search methods raise an error if they exhaust the reachable nodes. The default distance search also raises an error after 4 * N * N expansions, and the effort search after 100 expansions, unless the goal is selected. A search that reaches its limit may still have unexplored nodes. The optional shortest-path search runs until it selects the goal or exhausts the reachable graph. Starting a reset, rebuilding the grid, running either search, preparing the waypoints, or refitting the spline invalidates the previous reference. Only a successful reset enables UpdateState() to write either attitude output. The maneuver starts at the simulation time passed to that reset. Output messages retain absolute simulation timestamps.

Detailed Module Description

A detailed explanation of the method implemented in this module can be found in R. Calaon and H. Schaub, “Constrained Attitude Maneuvering via Modified-Rodrigues-Parameter-Based Motion Planning Algorithms”. To summarize, this module builds a 3D grid in MRP space, whose density is regulated by the input parameter N. Each grid node corresponds to an attitude. An undirected graph is built with all the nodes that are constraint compliant. Two nodes are added to the graph:

  • startNode whose coordinates \(\sigma_{BN,S}\) are the spacecraft attitude from scStateInMsg.

  • goalNode whose coordinates \(\sigma_{BN,G}\) correspond to the desired target attitude at the end of the maneuver.

The distance-based search ranks paths by their accumulated MRP distance plus an estimate of the distance to the goal. By default, the estimate can exceed the remaining graph distance, so the selected path can be longer than the shortest grid path. Setting useShortestPath = True selects the consistent lower bound \(h = \theta/4\), where \(\theta \in [0, \pi]\) is the principal relative rotation angle to the goal in radians. For any edge, its MRP distance \(d(u,v)\) satisfies \(\theta(u,v) \leq 4d(u,v)\): along a straight segment between either pair of MRP representations, \(\|\boldsymbol{\omega}\| = 4\|\dot{\boldsymbol{\sigma}}\|/(1+\|\boldsymbol{\sigma}\|^2)\). Together with the triangle inequality for rotation angles, this gives \(h(u) \leq d(u,v) + h(v)\). The optional search therefore expands each reachable node at most once and returns a path with minimum accumulated edge distance when it selects the goal.

The effort-based search ranks candidate splines by the integral of the control torque norm. It keeps one predecessor per node even though the effort depends on the entire path, so another feasible path can have lower effort.

The module fits the selected path using BSpline. When the path contains only the start and goal waypoints, both fitting modes use a cubic determined by the endpoint attitudes and rates. When refitting with spline(), prescribing an MRP second derivative at one endpoint with Input.setXDDot_0() or Input.setXDDot_N() gives a quartic. Prescribing both gives a quintic. Longer paths use a quartic spline. Endpoint angular rates are converted using the MRP set selected for each waypoint. The planner selects the MRP sequence with the smallest peak norm over the entire short rotation between each pair of waypoints. At a relative rotation of 180 degrees both directions are eligible. A tie between starting sets within roundoff favors a principal-set start. If every sequence reaches an MRP singularity, split the maneuver.

The planner also bounds the total fitted angular travel on each waypoint interval, including reversals. It accepts a fit only when this bound is less than the short waypoint separation plus one full revolution. A conservative bound can reject a fit near this limit. If this occurs, split the maneuver and replan. The effort-based search skips such candidate paths, as well as candidates with invalid waypoint intervals or nonfinite control effort. A nonfinite final effort causes reset to raise an error.

Note that this module does not implement the constant angular rate norm routine described in R. Calaon and H. Schaub. The attitude, rates and accelerations provided to the Attitude Reference Message are those obtained directly from the BSpline interpolation.

User Guide

To request a shortest path on the generated graph, configure the planner before reset:

planner.costFcnType = 0
planner.useShortestPath = True

useShortestPath defaults to False and also applies to direct AStar() calls. It has no effect on effortBasedAStar() or costFcnType = 1. The optional mode shares the default distance search’s graph and edge costs, but can explore substantially more nodes. It uses a priority queue and has no expansion cap; allow additional planning time and memory, especially at higher refinement. expandedNodeCount reports the last search’s expansions, excluding the selected goal, and is read-only in Python. Building a new grid resets the count.

The guarantee is limited to the sum of MRP edge distances on the generated graph, including its endpoint connections and shadow-set links. Equally short paths can have different waypoints. It does not guarantee the shortest continuous maneuver, minimum control effort, or continuous cone clearance along the fitted reference. pathCost continues to report the fitted reference’s control effort in N m s, not grid distance. An unreachable goal means that the generated graph has no route; a continuous maneuver may still exist.

A maneuver can start at any simulation time. Waypoint times are elapsed seconds from the planner’s most recent successful reset. For example, after a reset at 3600 s, waypoint times of 0 s and 5 s correspond to simulation times of 3600 s and 3605 s. The attitude reference messages carry absolute simulation timestamps.

When refitting with spline(), supply finite attitude components at every waypoint, including zero-weight waypoints. The planner uses each attitude to bound angular travel. Only the standalone BSpline.approximate() accepts missing coordinates at zero-weight interior waypoints, and only when you supply explicit waypoint times.

This example slews from rest at the identity attitude about the inertial z-axis. The body x-axis must stay outside a 20-degree cone around a fixed celestial direction. Write the state, inertia, and celestial-body messages before initialization so the planner can read them at reset. The recorder runs after the planner on the same task.

import numpy as np
from Basilisk.architecture import messaging
from Basilisk.fswAlgorithms import constrainedAttitudeManeuver
from Basilisk.utilities import SimulationBaseClass, macros

sim = SimulationBaseClass.SimBaseClass()
process = sim.CreateNewProcess("process")
process.addTask(sim.CreateNewTask("guidance", macros.sec2nano(1.0)))  # [s]

state = messaging.SCStatesMsg().write(messaging.SCStatesMsgPayload())
vehicle = messaging.VehicleConfigMsgPayload()
vehicle.ISCPntB_B = [10, 0, 0, 0, 12, 0, 0, 0, 14]  # [kg m^2]
config = messaging.VehicleConfigMsg().write(vehicle)
body = messaging.SpicePlanetStateMsgPayload()
body.PositionVector = [0, 0, 1e8]  # [m] same inertial frame and origin as the spacecraft position
body_state = messaging.SpicePlanetStateMsg().write(body)

planner = constrainedAttitudeManeuver.ConstrainedAttitudeManeuver(5)
planner.sigma_BN_goal = [0, 0, 0.5]  # MRPs [-]
planner.avgOmega = 0.04  # [rad/s]
planner.costFcnType = 0  # distance-based search
planner.BSplineType = 0  # interpolation
planner.scStateInMsg.subscribeTo(state)
planner.vehicleConfigInMsg.subscribeTo(config)
planner.appendKeepOutDirection([1, 0, 0], np.deg2rad(20))  # [-], [rad]
planner.keepOutCelBodyInMsg.subscribeTo(body_state)

recorder = planner.attRefOutMsg.recorder()
sim.AddModelToTask("guidance", planner, ModelPriority=1)
sim.AddModelToTask("guidance", recorder)
sim.InitializeSimulation()
sim.ConfigureStopTime(macros.sec2nano(60.0))  # [s]
sim.ExecuteSimulation()
np.testing.assert_allclose(recorder.sigma_RN[-1], planner.sigma_BN_goal, atol=1e-12)

Cone compliance. The planner holds each celestial direction fixed at its reset value. Interpolation passes through the selected attitudes and can cross a cone boundary between waypoints. Least-squares approximation can also miss an interior waypoint at its assigned time. Increasing N changes the sampled path and computational cost. No grid refinement guarantees continuous clearance. If the maneuver requires it, verify clearance along the full fitted reference using the expected time-varying celestial directions and a margin for tracking error.

See scenarioAttitudeConstrainedManeuver for a closed-loop spacecraft example with both cone types. Its optional compareSearchModes=True run with attitude case 4 overlays the default and shortest grid paths and compares their accumulated MRP edge distances and node expansions. The example then simulates the shortest-path reference; existing calls retain effort-based planning.

The module is configurable with the following parameters:

Module Parameters

Parameter

Description

N

grid refinement level, an integer from 2 through 20 inclusive

sigma_BN_goal

Required finite goal attitude in MRPs. In Python, assign a sequence of exactly three components. Zero MRPs specify the identity attitude.

omega_BN_B_goal

Desired body-frame angular rate at the goal in rad/s. Defaults to zero.

avgOmega

Required finite, positive timing parameter in rad/s. The planner sets each waypoint interval to four times the MRP distance between its endpoints divided by avgOmega. The physical mean and peak angular speeds depend on the fitted trajectory.

BSplineType

Required before reset. Set to 0 for interpolation or 1 for least-squares approximation. The initial value is -1 (unset).

costFcnType

Required before reset. Set to 0 for total MRP distance or 1 for control effort. The initial value is -1 (unset).

useShortestPath

Optional distance-search flag, initially False. Set to True to minimize total MRP edge distance on the generated graph using the rotation-angle lower bound and no expansion cap. Ignored in effort mode.


Functions

void mirrorFunction(int indices[3], int mirrorIndices[8][3])

This helper function returns the coordinates of the 8 symmetrical points to a point in 3D cartesian space.

void neighboringNodes(int indices[3], int neighbors[26][3])

For a set of indices, this helper function returns the indices of the 26 immediate neighbors.

double distance(Node n1, Node n2)

This function implements the MRP cartesian distance between 2 nodes.

struct constraintStruct
#include <constrainedAttitudeManeuver.h>

The constraintStruc structure is used to store the inertial direction of the keep-in and keep-out zones.

Public Members

double keepOutDir_N[3]

Inertial direction of keepOut celestial bodies.

double keepInDir_N[3]

Inertial direction of keepIn celestial bodies.

bool keepOut

Flag to assess whether keepOut constraints are being considered.

bool keepIn

Flag to assess whether keepIn constraints are being considered.

struct scBoresightStruct
#include <constrainedAttitudeManeuver.h>

The scBoresightStruc structure is used to store the body frame directions and fields of view of the instruments.

Public Members

double keepOutBoresight_B[10][3]

Unit vectors containing body frame directions of keepOut instruments.

double keepInBoresight_B[10][3]

Unit vectors containing body frame directions of keepIn instruments.

double keepOutFov[10]

Fields of view of the keepOut instruments.

double keepInFov[10]

Fields of view of the keepIn instruments.

int keepOutBoresightCount = 0

Number of keepOut sensitive instruments.

int keepInBoresightCount = 0

Number of keepIn instruments.

class Node
#include <constrainedAttitudeManeuver.h>

The Node class is used to create nodes in the 3D MRP graph.

Public Functions

Node()

Construct an unclassified grid node.

Node(double sigma_BN[3], constraintStruct constraints, scBoresightStruct boresights)

The constructor requires the MRP set, the constraint structure and the sc boresight structure

~Node()

Module Destructor.

void appendNeighbor(Node *node)

This method appends a pointer to neighboring node to the neighbors class variable

Public Members

double sigma_BN[3] = {}

MRP set corresponding to the node.

bool isBoundary = false

If true, the node lies on the |sigma| = 1 boundary surface.

bool isFree = false

True once the attitude is classified as constraint-compliant.

double heuristic = 0.0

Heuristic value used by Cartesian distance A*.

double priority = 0.0

Priority of the node in A*.

Node *neighbors[52] = {}

Container of pointers to neighboring nodes.

int neighborCount = 0

Number of neighboring nodes.

Node *backPointer = nullptr

Pointer to the previous node in the path computed by A*.

class NodeList
#include <constrainedAttitudeManeuver.h>

The NodeList class is used in the A* algorithm to handle Open and Closed lists O and C.

Public Functions

NodeList()

This is the constructor for the NodeList class.

NodeList(const NodeList &source)

Copy a list whose active nodes all have retained owners.

Parameters:

source – List to copy.

NodeList &operator=(const NodeList &source)

Replace the list after checking ownership of all source entries.

Parameters:

source – List to copy.

Returns:

The destination list.

~NodeList()

Class Destructor.

void append(Node *node, std::shared_ptr<void> owner = nullptr)

Append a node and retain its optional storage owner until its last entry is removed.

Parameters:
  • node – Pointer to the node to append.

  • owner – Optional handle keeping the node alive.

void pop(int M)

This method removes the pointer at index M from the node list.

void clear()

This method resets the list counter to 0, effectively clearing the list.

void swap(int m, int n)

This method swaps the two pointers at indices m and n.

void sort()

This method sorts the nodes in the list according to their priority.

bool contains(Node *node)

This method returns true if a node is contained in the list, false otherwise.

Public Members

std::vector<Node*> list

Dynamically sized pointers to the active nodes.

int N

Number of nodes in the list.

Private Functions

void notifyChange() const

Private Members

std::function<void()> onChange

Invalidates waypoints when this list is the planner’s path.

std::map<Node*, std::shared_ptr<void>> owners

Storage owners for nodes appended from Python.

Friends

friend class ConstrainedAttitudeManeuver
class ConstrainedAttitudeManeuver : public SysModel
#include <constrainedAttitudeManeuver.h>

waypoint reference module class

Public Functions

ConstrainedAttitudeManeuver()

This is the constructor for the module class. It sets default variable values and initializes the various parts of the model

ConstrainedAttitudeManeuver(int N)

This is the constructor for the module class. It sets default variable values and initializes the various parts of the model

~ConstrainedAttitudeManeuver()

Module Destructor.

void SelfInit()

Self initialization for C-wrapped messages.

Initialize C-wrapped output messages

void Reset(uint64_t CurrentSimNanos)

This method is used to reset the module. The input messages are read here, the grid is generated and the graph search is performed.

void UpdateState(uint64_t CurrentSimNanos)

This method is the state update. It reads the information from the interpolated trajectory and writes the output message.

Parameters:

CurrentSimNanos – The current simulation time for system

void ReadInputs()

This method reads the input messages in from the system and sets the appropriate parameters

void GenerateGrid(Node startNode, Node goalNode)

Rebuild the MRP grid and connect the free neighboring nodes.

Note

Requires a refinement level from 2 through 20, distinct endpoint nodes and a constraint-compliant goal.

Parameters:
  • startNode – Node supplying the initial attitude.

  • goalNode – Node supplying the target attitude.

void appendKeepOutDirection(double direction[3], double Fov)

Add keep-out body-frame direction

void appendKeepInDirection(double direction[3], double Fov)

Add keep-in body-frame direction

void AStar()

Search the generated graph using accumulated MRP edge distance.

Note

With useShortestPath, the heuristic is one quarter of the principal rotation angle to the goal. This consistent lower bound guarantees a shortest grid path on completion. Otherwise, the legacy heuristic, ordering and expansion budget are retained.

void effortBasedAStar()

This method applies the effort-based A* to find a valid path

void pathHandle()

Prepare the current path for spline fitting.

void spline()

This method performs the BSpline interpolation/approximation and outputs an Output structure

void computeTorque(int n, double I[9], double L[3])

This method computes the torque vector required at time step with index n

double computeTorqueNorm(int n, double I[9])

Compute the torque norm at a fitted sample using the supplied inertia.

Parameters:
  • n – Fitted sample index.

  • I – Body-frame inertia tensor in row-major order [kg m^2].

Returns:

Torque norm [N m].

double effortEvaluation()

This method integrates the control torque norm over maneuver time and returns the cost for the effort-based A*.

double returnNodeCoord(int key[3], int nodeCoord)

This method allows to access the coordinates of a Node in NodesMap without swigging the C++ Map. It is designed to be used in the UnitTest primarily.

bool returnNodeState(int key[3])

This method allows to access the state of a Node (free or not free) in NodesMap without swigging the C++ Map. It is designed to be used in the UnitTest primarily.

double returnPathCoord(int index, int nodeCoord)

This method allows to access the coordinates of path Nodes in without swigging NodesList C++. It is designed to be used in the UnitTest primarily.

Public Members

int N = 0

Grid refinement level, zero until configured.

int BSplineType = -1

Unset until configured to 0 for interpolation or 1 for least-squares approximation.

int costFcnType = -1

Unset until configured to 0 for distance-based search or 1 for effort-based search.

bool useShortestPath = false

Use the consistent rotation-angle lower bound in distance-based A*.

std::size_t expandedNodeCount = 0

Nodes expanded by the last search, excluding the selected goal.

double sigma_BN_goal[3]

[-] Required goal attitude in MRPs, initially NaN

double omega_BN_B_goal[3] = {}

[rad/s] Desired body-frame angular rate at the goal, initially zero

double avgOmega = 0.0

[rad/s] Positive rate used to set waypoint intervals from MRP distance

double keepOutFov

Field of view of the sensitive instrument.

double keepOutBore_B[3]

Body-frame direction of the boresight of the sensitive instrument.

constraintStruct constraints = {}

Constraint directions in inertial coordinates.

scBoresightStruct boresights = {}

Instrument boresight directions in body-frame coordinates.

std::map<int, std::map<int, std::map<int, Node>>> NodesMap

C++ map from node indices to Node class.

int keyS[3] = {invalidGridIndex, invalidGridIndex, invalidGridIndex}

Start node key in NodesMap.

int keyG[3] = {invalidGridIndex, invalidGridIndex, invalidGridIndex}

Goal node key in NodesMap.

NodeList path

Path of nodes from start to goal.

double pathCost = std::numeric_limits<double>::quiet_NaN()

[N m s] Effort of the reference accepted by Reset

InputDataSet Input

Input structure for the BSpline interpolation/approximation.

OutputDataSet Output

Output structure of the BSpline interpolation/approximation.

ReadFunctor<SCStatesMsgPayload> scStateInMsg

Spacecraft state input message.

ReadFunctor<VehicleConfigMsgPayload> vehicleConfigInMsg

FSW vehicle configuration input message.

ReadFunctor<SpicePlanetStateMsgPayload> keepOutCelBodyInMsg

Celestial body state msg - keep out direction.

ReadFunctor<SpicePlanetStateMsgPayload> keepInCelBodyInMsg

Celestial body state msg - keep in direction.

Message<AttRefMsgPayload> attRefOutMsg

Attitude reference output message.

AttRefMsg_C attRefOutMsgC = {}

C-wrapped attitude reference output message.

BSKLogger bskLogger

BSK Logging.

Public Static Attributes

static constexpr int invalidGridIndex = INT_MAX

Grid index used when an endpoint has not been selected.

Private Functions

inline bool keepOutConfigured()
inline bool keepInConfigured()
void requireInputs()
void invalidateFit()
void invalidateWaypoints()
void clearPath()
void clearGrid()
Node *gridEndpoint(const int key[3])

Look up an endpoint in the generated grid.

Parameters:

key – Three grid indices identifying the endpoint.

Returns:

Pointer to the stored endpoint node.

void backtrack(Node *p)

Append the predecessor chain in start-to-goal order without recursive calls.

Parameters:

p – Last node of the path to reconstruct.

void validateManeuverRate()

Require a finite, positive rate for maneuver timing.

const char *prepareWaypoints()

Convert the path to time-tagged MRP waypoints.

Returns:

Null on success, or a description of why the path cannot be fitted.

bool fitSpline()
void computeTorqueUnchecked(int n, double I[9], double L[3]) const

Private Members

SCStatesMsgPayload scStateMsgBuffer
VehicleConfigMsgPayload vehicleConfigMsgBuffer
SpicePlanetStateMsgPayload keepOutCelBodyMsgBuffer
SpicePlanetStateMsgPayload keepInCelBodyMsgBuffer
uint64_t resetTimeNanos = 0

[ns] Simulation time at the start of the planned maneuver

bool referenceReady = false

True once Reset has completed planning the attitude reference.

bool inputsReady = false

True after the most recent ReadInputs() completes successfully.