spaceteams.SC_Compute_Server
Space Teams PRO Python API
Used to write code that either interacts with running simulations, edits config files and runs sims, or just uses utility functions like our math library.
Members:
Default : The value is represented with many meaningful digits as needed up to the given precision. Switches to scientific notation if the decimal place is not within the meaningful digits. Corresponds with std::defaultfloat https://cplusplus.com/reference/ios/defaultfloat/.
DigitsAfterDecimal : The value is represented with exactly as many digits in the decimal part as the given precision specifies. Corresponds with std::fixed https://cplusplus.com/reference/ios/fixed/.
Scientific : The value is represented with one digit before the decimal point, followed by the decimal point and as many decimal digits as the given precision. Corresponds with std::scientific https://cplusplus.com/reference/ios/scientific/.
Members:
Uninitialized
Unrecognized
bytes
bitset64
bool
uint8
uint16
uint32
uint64
int8
int16
int32
int64
duration
timestamp
uuid
entityID
entityRef
entityRefUnresolved
float : NOTE: python "float" is actually VarType double
double : python type is "float"
char
doubleV2 : python type is numpy array
doubleV3 : python type is numpy array
doubleV4 : python type is numpy array
doubleM2x2 : python type is numpy matrix
doubleM3x3 : python type is numpy matrix
doubleM4x4 : python type is numpy matrix
doubleM5x5 : python type is numpy matrix
doubleM6x6 : python type is numpy matrix
string
paramArray : python type is a list of the member type
paramMap
Members:
NoPropagation
ComputePosition
ComputeVelocity
ComputeAcceleration
ComputeJerk
Clientside_FreeBody
Clientside_PawnControl
PhysXInteractible
CoordinateFrame_Static
__init__(self: spaceteams.SC_Compute_Server.PropagationType, value: typing.SupportsInt) -> None
Members:
No_Body
ST_Rigid_Body
SPICE
Unreal_Chaos
Unreal_Pawn
Custom
Static
__init__(self: spaceteams.SC_Compute_Server.PropagatorChoice, value: typing.SupportsInt) -> None
Members:
Normal : Typical C++ System that inits and updates on its own.
Taskflow : Taskflow which contains a set of TaskflowTask Systems.
TaskflowTask : Systems that are initted and updated by a Taskflow.
Internal : System with extra capabilities, reserved for internal use.
Python : System that represents a Python program that joins the sim.
__init__(self: spaceteams.SC_Compute_Server.SystemType, value: typing.SupportsInt) -> None
Members:
DependencyGraph
__init__(self: spaceteams.SC_Compute_Server.TaskflowType, value: typing.SupportsInt) -> None
Members:
Sim
IRL
NoSleep
__init__(self: spaceteams.SC_Compute_Server.UpdateTimeDomain, value: typing.SupportsInt) -> None
Members:
Scalar : FieldEffect returns Scalar 64-bit float value.
Vector : FieldEffect returns 3D vector 64-bit float value.
Ephemeris : FieldEffect representing an Ephemeris System, which handles NAIF SPICE ephemeris queries.
__init__(self: spaceteams.SC_Compute_Server.FieldEffectType, value: typing.SupportsInt) -> None
FromString(uuid_str: str, use_hyphens: bool = True) -> spaceteams.SC_Compute_Server.UUID
Parse UUID string. Currently assuming all hex alpha chars are lowercase.
IsValid(uuid: spaceteams.SC_Compute_Server.UUID) -> bool
Validate UUID bytes (true if valid UUID).
IsValidStr(uuid_str: str) -> bool
Validate UUID string (true if valid UUID). This does not check proper version or anything other than proper formatting.
Generate() -> spaceteams.SC_Compute_Server.UUID
Randomly generate a version 4, variant 1 UUID.
__init__(self: spaceteams.SC_Compute_Server.EntityRef_Unresolved, entity_name: str) -> None
as_datetime(self: spaceteams.SC_Compute_Server.timestamp) -> object
Gets the timestamp as a Python datetime. This converts the time from the TAI clock to UTC.
Raises ValueError if the UTC instant falls during a leap second, because Python datetime cannot represent 23:59:60.
from_datetime(date_time: object) -> spaceteams.SC_Compute_Server.timestamp
Construct a timestamp object from a Python datetime. This interprets the input as UTC (converting from any timezone if needed) and then converts that UTC time to the simulation's TAI clock.
as_tai_string(self: spaceteams.SC_Compute_Server.timestamp) -> str
Return a string of the timestamp, keeping it as TAI clock. See this for more clock choice details: https://stackoverflow.com/a/64084510/11502722
as_utc_string(self: spaceteams.SC_Compute_Server.timestamp) -> str
Return a string of the timestamp after converting it to UTC. See this for more clock choice details: https://stackoverflow.com/a/64084510/11502722
Members:
UNDEFINED :
Generic :
ParamMap :
SimConfig :
EntityConfig :
SystemSource :
PlanetData :
__init__(self: spaceteams.SC_Compute_Server.AssetType, value: typing.SupportsInt) -> None
Members:
UNDEFINED :
Local :
Core :
__init__(self: spaceteams.SC_Compute_Server.AssetFileCategory, value: typing.SupportsInt) -> None
Members:
UNDEFINED :
Force :
Torque :
Impulse :
AngImpulse :
Acceleration :
AngAcceleration :
DeltaLocation :
DeltaVelocity :
DeltaRotation :
DeltaAngVelocity :
LocationOverride :
VelocityOverride :
AccelerationOverride :
RotationOverride :
AngVelocityOverride :
AngAccelerationOverride :
__init__(self: spaceteams.SC_Compute_Server.PhysEffectType, value: typing.SupportsInt) -> None
Physical Effect that can be applied to an Entity.
__init__(*args, **kwargs) Overloaded function.
- __init__(self: spaceteams.SC_Compute_Server.PhysEffect) -> None
Prefer using the other constructor.
- __init__(self: spaceteams.SC_Compute_Server.PhysEffect, effectType: spaceteams.SC_Compute_Server.PhysEffectType, frame: spaceteams.SC_Compute_Server.frames.Frame) -> None
Standard constructor that produces a valid minimal PhysEffect.
(self: spaceteams.SC_Compute_Server.PhysEffect) -> typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"]
(self: spaceteams.SC_Compute_Server.PhysEffect) -> typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"]
setVector(self: spaceteams.SC_Compute_Server.PhysEffect, vector: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, "[3, 1]"]) -> None
Set magnitude and direction at the same time.
setQuaternion(self: spaceteams.SC_Compute_Server.PhysEffect, quat: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, "[4, 1]"]) -> None
Set quaternion, for Rotation, in xyzw order
setStartTime(self: spaceteams.SC_Compute_Server.PhysEffect, startTime: spaceteams.SC_Compute_Server.timestamp) -> None
Enable and set start time.
setEndTime(self: spaceteams.SC_Compute_Server.PhysEffect, endTime: spaceteams.SC_Compute_Server.timestamp) -> None
Enable and set end time.
HasParam(*args, **kwargs) Overloaded function.
- HasParam(self: spaceteams.SC_Compute_Server.ParamMap, key: str) -> bool
Checks if this Entity_Base has a parameter at the given key.
- HasParam(self: spaceteams.SC_Compute_Server.ParamMap, key: object) -> bool
Checks if this Entity_Base has a parameter at the given key.
- HasParam(self: spaceteams.SC_Compute_Server.ParamMap, type: spaceteams.SC_Compute_Server.VarType, key: object) -> bool
Checks if this Entity_Base has a parameter at the given key with the given type.
ToString(self: spaceteams.SC_Compute_Server.ParamMap, notation: spaceteams.SC_Compute_Server.Notation = st.Notation.Default, precision: typing.SupportsInt = 17) -> str
Returns a string of the keys/values of this ParamMap, with a certain notation and precision. Avoids newline characters.
- notation: Select decimal notation
- precision: Number of significant digits printed
ToStringMultiline(self: spaceteams.SC_Compute_Server.ParamMap, notation: spaceteams.SC_Compute_Server.Notation = st.Notation.Default, precision: typing.SupportsInt = 17) -> str
Returns a string of the keys/values of this ParamMap, with a certain notation and precision. Avoids newline characters.
- notation: Select decimal notation
- precision: Number of significant digits printed
HasParamArray(*args, **kwargs) Overloaded function.
- HasParamArray(self: spaceteams.SC_Compute_Server.ParamMap, key: object) -> bool
Checks if this Entity_Base has a param array at the given key with any member type.
- HasParamArray(self: spaceteams.SC_Compute_Server.ParamMap, type: spaceteams.SC_Compute_Server.VarType, key: object) -> bool
Checks if this Entity_Base has a param array at the given key with the given member type.
HasParamWithValue(self: spaceteams.SC_Compute_Server.ParamMap, type: spaceteams.SC_Compute_Server.VarType, key: object, value: object) -> bool
Checks if this ParamMap has a parameter at the given key with the given type and if the value of that parameter matches the given value.
GetParamType(self: spaceteams.SC_Compute_Server.ParamMap, key: object) -> spaceteams.SC_Compute_Server.VarType
Returns the VarType of the parameter at the given key.
GetParamArrayType(self: spaceteams.SC_Compute_Server.ParamMap, key: object) -> spaceteams.SC_Compute_Server.VarType
Returns the VarType of the parameter array at the given key.
GetParamTime(self: spaceteams.SC_Compute_Server.ParamMap, key: object) -> spaceteams.SC_Compute_Server.timestamp
Returns the timestamp of the edited-time of the parameter at the given key.
GetParamMap(self: spaceteams.SC_Compute_Server.ParamMap, keys: object) -> spaceteams.SC_Compute_Server.ParamMap
Get pointer to the GenParamMap at this key. Duplicate of GetMap.
GetMap(self: spaceteams.SC_Compute_Server.ParamMap, keys: object) -> spaceteams.SC_Compute_Server.ParamMap
Get pointer to the GenParamMap at this key.
GetParam(self: spaceteams.SC_Compute_Server.ParamMap, type: spaceteams.SC_Compute_Server.VarType, key: object) -> object
Get a copy of the value of the Parameter at the given key on this ParamMap. Usage: value = TheParamMap.GetParam(st.VarType.VarTypeOfParameter, "KeyOfParameter") value = TheParamMap.GetParam(st.VarType.VarTypeOfParameter, ["TopMapKey", "MiddleMapKey", "KeyOfParameter"]) Example: messageOnThisEntity = en1.GetParam(st.VarType.string, "Message") There is a runtime check for if this parameter is actually the type you specified it to be.
IfHas_GetParam(self: spaceteams.SC_Compute_Server.ParamMap, type: spaceteams.SC_Compute_Server.VarType, key: object) -> tuple
If a parameter with this type exists at the key, return [true, value]. Otherwise, return [false, None].
IfHas_GetParamArray(self: spaceteams.SC_Compute_Server.ParamMap, type: spaceteams.SC_Compute_Server.VarType, key: object) -> tuple
If a parameter array with this member type exists at the key, return [true, array value]. Otherwise, return [false, None].
IfHas_GetParamWithTime(self: spaceteams.SC_Compute_Server.ParamMap, type: spaceteams.SC_Compute_Server.VarType, key: object) -> tuple
If a parameter with this type exists at the key, return [true, value, timestamp]. Otherwise, return [false, None, None].
SetParam(self: spaceteams.SC_Compute_Server.ParamMap, type: spaceteams.SC_Compute_Server.VarType, key: object, value: object) -> None
Set the value of the parameter at the given key on this GenParamMap with the given value. There is a runtime check for if this parameter is actually the type you specified to it be.
AddParam(self: spaceteams.SC_Compute_Server.ParamMap, type: spaceteams.SC_Compute_Server.VarType, key: object, value: object) -> None
adds a new parameter at the given key on this entity. The input is in the form of std::vector. There is a static check for if this parameter is actually of a support type.
SetParamArray(self: spaceteams.SC_Compute_Server.ParamMap, type: spaceteams.SC_Compute_Server.VarType, key: object, value: list) -> None
Set the value of the parameter at the given key on this GenParamMap with the given value. The input is in the form of std::vector. There is a runtime check for if this parameter is actually the type you specified to it be. The array will resized itself as needed
AddParamArray(self: spaceteams.SC_Compute_Server.ParamMap, type: spaceteams.SC_Compute_Server.VarType, key: object, value: list) -> None
GetParamArray(self: spaceteams.SC_Compute_Server.ParamMap, type: spaceteams.SC_Compute_Server.VarType, key: object) -> object
Get a copy of the values from the Parameter Array at the given key on this GenParamMap. This copy is in the form of a std::vector.
GetParamArraySize(self: spaceteams.SC_Compute_Server.ParamMap, key: object) -> int
Get the number of elements in the Parameter Array at the given key on this GenParamMap. This has the advantage of not copying the array, and is faster than len(GetParamArray(...)). There is a runtime check for if this parameter is actually an array.
AddOrSetParam(self: spaceteams.SC_Compute_Server.ParamMap, type: spaceteams.SC_Compute_Server.VarType, key: object, value: object) -> bool
Returns whether the parameter previously existed
AddCopiesOfAllParamsFrom(self: spaceteams.SC_Compute_Server.ParamMap, other: spaceteams.SC_Compute_Server.ParamMap) -> None
Adds a DeepCopy of all the params on another GenParamMap to this one NOTE: If there are name collisions, this will perform a Set on same- type colliding params, or throw for differing type.
ForEachParam(self: spaceteams.SC_Compute_Server.ParamMap, operations: collections.abc.Callable[[str, spaceteams.SC_Compute_Server.VarType], None]) -> None
For each of the parameters in this ParamMap, supply the key and type and do "operations". Doesn’t allow access to pointer because it's non-const. The operations passed in here are a std::function, which is usually made as a lambda function.
ForEachParamMap(self: spaceteams.SC_Compute_Server.ParamMap, operations: collections.abc.Callable[[str, spaceteams.SC_Compute_Server.ParamMap], None]) -> None
For each of the parameters in this ParamMap, supply the key, ParamMap pointer, and type and do "operations". The operations passed in here are a std::function, which is usually made as a lambda function.
DeleteParam(self: spaceteams.SC_Compute_Server.ParamMap, key: object) -> None
Remove from map and free memory for a param
GetParamAsString(self: spaceteams.SC_Compute_Server.ParamMap, key: object) -> str
Get what this parameter value's ToString() function would output, without needing to specify the type of parameter value to get.
ClearParams(self: spaceteams.SC_Compute_Server.ParamMap) -> None
Remove from map and free memory for a param
Entity class representing an entity in a running simulation.
getName(self: spaceteams.SC_Compute_Server.Entity) -> str
Returns the name of the Entity_Base
getId(self: spaceteams.SC_Compute_Server.Entity) -> spaceteams.SC_Compute_Server.UUID
Returns the id of the Entity_Base
getId_str(self: spaceteams.SC_Compute_Server.Entity) -> str
Returns the id of the Entity_Base as string type
getType(self: spaceteams.SC_Compute_Server.Entity) -> str
Get Entity Type of this Entity.
getLocation(self: spaceteams.SC_Compute_Server.Entity) -> spaceteams.SC_Compute_Server.frames.FramedLoc
Get time-extrapolated location of this entity (meters, right handed coordinates)
getRotation(self: spaceteams.SC_Compute_Server.Entity) -> spaceteams.SC_Compute_Server.frames.FramedRot
Get the orientation of this entity's body frame (right handed coordinates).
getLocVel(self: spaceteams.SC_Compute_Server.Entity) -> spaceteams.SC_Compute_Server.frames.FramedLocVel
Get time-extrapolated location and velocity of this entity (meters, meters/second, right handed coordinates).
getLocVelAcc(self: spaceteams.SC_Compute_Server.Entity) -> spaceteams.SC_Compute_Server.frames.FramedLocVelAcc
Get time-extrapolated location, velocity, and acceleration of this entity (meters, meters/second, meters/second^2, right handed coordinates).
getVelocity(self: spaceteams.SC_Compute_Server.Entity) -> spaceteams.SC_Compute_Server.frames.FramedLocVel
Get time-extrapolated velocity of this entity (meters/second, right handed coordinates).
getAcceleration(self: spaceteams.SC_Compute_Server.Entity) -> spaceteams.SC_Compute_Server.frames.FramedLocVelAcc
Get time-extrapolated acceleration of this entity (meters/sec ^ 2, right handed coordinates)
getAngAcceleration(self: spaceteams.SC_Compute_Server.Entity) -> spaceteams.SC_Compute_Server.frames.FramedAngAcc
Get time-extrapolated angular acceleration of this entity (rad/sec^2, right handed coordinates)
getAngVelocity(self: spaceteams.SC_Compute_Server.Entity) -> spaceteams.SC_Compute_Server.frames.FramedAngVel
Get time-extrapolated angular velocity of this entity (rad/sec, right handed coordinates) The vector direction is the axis of rotation, and the magnitude of the vector is the speed of the right-handed rotation around that axis
getMass(self: spaceteams.SC_Compute_Server.Entity) -> float
Get the mass of this entity (kilograms)
getInertia(self: spaceteams.SC_Compute_Server.Entity, inFrame: spaceteams.SC_Compute_Server.frames.Frame) -> typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 3]"]
Get Entity Inertia Tensor (kilograms * meters^2, 3x3 symmetric matrix, right handed coordinates). Deprecated mismatching name from C++ API.
getInertiaTensor(self: spaceteams.SC_Compute_Server.Entity, inFrame: spaceteams.SC_Compute_Server.frames.Frame) -> typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 3]"]
Get Entity Inertia Tensor (kilograms * meters^2, 3x3 symmetric matrix, right handed coordinates).
setLocation(self: spaceteams.SC_Compute_Server.Entity, loc: spaceteams.SC_Compute_Server.frames.FramedLoc) -> None
Set entity location (meters, right handed coordinates)
setLocation_ZeroVel(self: spaceteams.SC_Compute_Server.Entity, loc: spaceteams.SC_Compute_Server.frames.FramedLoc) -> None
Set Entity Location (meters, right handed coordinates). Also sets velocity and acceleration to zero.
setLocationD(self: spaceteams.SC_Compute_Server.Entity, loc: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, "[3, 1]"], fromFrame: spaceteams.SC_Compute_Server.frames.Frame) -> None
(Deprecated) Set entity location (meters, right handed coordinates)
setLocVelAcc(self: spaceteams.SC_Compute_Server.Entity, LocVelAcc: spaceteams.SC_Compute_Server.frames.FramedLocVelAcc) -> None
Set Entity Location, Velocity, and Acceleration (meters, meters/second, meters/second^2, right handed coordinates).
setRotation(self: spaceteams.SC_Compute_Server.Entity, rot: spaceteams.SC_Compute_Server.frames.FramedRot) -> None
Set Entity Rotation.
setRotation_Quat(*args, **kwargs) Overloaded function.
- setRotation_Quat(self: spaceteams.SC_Compute_Server.Entity, rot_quat_xyzw: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, "[4, 1]"], fromFrame: spaceteams.SC_Compute_Server.frames.Frame) -> None
(Deprecated) Set entity rotation (passive quaternion, right hand coordinate). Takes numpy array of (x,y,z,w).
- setRotation_Quat(self: spaceteams.SC_Compute_Server.Entity, rot_quat_xyzw: tuple, fromFrame: spaceteams.SC_Compute_Server.frames.Frame) -> None
(Deprecated) Set entity rotation (passive quaternion, right hand coordinate). Takes list of floats (x,y,z,w).
setRotation_DCM(self: spaceteams.SC_Compute_Server.Entity, rot: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, "[3, 3]"], fromFrame: spaceteams.SC_Compute_Server.frames.Frame) -> None
(Deprecated) Set entity rotation (passive DCM, right hand coordinate)
setRotation_ZeroVel(self: spaceteams.SC_Compute_Server.Entity, rot: spaceteams.SC_Compute_Server.frames.FramedRot) -> None
Set Entity Rotation. Also sets AngVelocity and AngAcceleration to zero.
setAngVelocity(self: spaceteams.SC_Compute_Server.Entity, angvel: spaceteams.SC_Compute_Server.frames.FramedAngVel) -> None
Set Entity Angular Velocity.
setAngVelocityD(self: spaceteams.SC_Compute_Server.Entity, angvel: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, "[3, 1]"], fromFrame: spaceteams.SC_Compute_Server.frames.Frame) -> None
(Deprecated) Set time-extrapolated angular velocity of this entity (rad/sec, right handed coordinates) The vector direction is the axis of rotation, and the magnitude of the vector is the speed of the right-handed rotation around that axis
setAngAcceleration(self: spaceteams.SC_Compute_Server.Entity, angacc: spaceteams.SC_Compute_Server.frames.FramedAngAcc) -> None
Set Entity Angular Acceleration.
setInertiaTensor(self: spaceteams.SC_Compute_Server.Entity, I_fromframe: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, "[3, 3]"], fromFrame: spaceteams.SC_Compute_Server.frames.Frame) -> None
Set Entity Inertia Tensor (kilograms * meters^2, 3x3 symmetric matrix, right handed coordinates).
getParentFrame(self: spaceteams.SC_Compute_Server.Entity) -> spaceteams.SC_Compute_Server.frames.Frame
Get the frame in which this entity’s state parameter are defined (new name for ResidentFrame)
getResidentFrame(self: spaceteams.SC_Compute_Server.Entity) -> spaceteams.SC_Compute_Server.frames.Frame
Get the frame in which this entity’s state parameter are defined.
GetBodyFixedFrame(self: spaceteams.SC_Compute_Server.Entity) -> spaceteams.SC_Compute_Server.frames.Frame
Get the body-fixed frame of this entity.
GetBodyCenteredFrame(self: spaceteams.SC_Compute_Server.Entity) -> spaceteams.SC_Compute_Server.frames.Frame
Get the frame centered on this entity, with axes aligned to the resident (parent) frame of the entity.
getResidentFrameBody(self: spaceteams.SC_Compute_Server.Entity) -> spaceteams.SC_Compute_Server.Entity
Get the entity whose body-fixed frame is used as the frame in which this Entity_Base's state parameters are defined.
setResidentFrame(self: spaceteams.SC_Compute_Server.Entity, frame: spaceteams.SC_Compute_Server.frames.Frame) -> None
Set the frame in which this Entity_Base's state parameters are defined, and transform state parameters to line up with the existing state.
setResidentFrame_ZeroState(self: spaceteams.SC_Compute_Server.Entity, frame: spaceteams.SC_Compute_Server.frames.Frame) -> None
Set the frame in which this Entity's state parameters are defined, and set all state parameters (position and rotation) to zero in the new frame.
AddStaticStateParamsIfMissing(self: spaceteams.SC_Compute_Server.Entity) -> None
Adds the Location and Rotation params to this Entity if they don't exist.
AddStateParamsIfMissing(self: spaceteams.SC_Compute_Server.Entity) -> None
Adds the Location, Velocity, Rotation, AngVelocity, etc params to this Entity_Base if they don't exist.
AddDynamicsParamsIfMissing(self: spaceteams.SC_Compute_Server.Entity) -> None
Adds the remainder of the dynamics params to this Entity_Base if they don't exist.
GetPropagator(self: spaceteams.SC_Compute_Server.Entity) -> spaceteams.SC_Compute_Server.PropagatorChoice
Get the Propagator choice for this entity.
SetPropagator(self: spaceteams.SC_Compute_Server.Entity, propagator: spaceteams.SC_Compute_Server.PropagatorChoice, transmit: bool = True) -> None
Set the choice of Propagator for this entity. This can be changed mid-sim.
getPhysEffects(self: spaceteams.SC_Compute_Server.Entity) -> dict[str, spaceteams.SC_Compute_Server.PhysEffect]
Get copy of the list of all physical effects on this entity.
setPhysEffect(self: spaceteams.SC_Compute_Server.Entity, key: str, effect: spaceteams.SC_Compute_Server.PhysEffect) -> None
Create or revise a physical effect on this entity.
removePhysEffect(self: spaceteams.SC_Compute_Server.Entity, key: str) -> None
Removes a physical effect associated with the specified key.
Inherited Members
- ParamMap
- unique_id
- HasParam
- ToString
- ToStringMultiline
- HasParamArray
- HasParamWithValue
- GetParamType
- GetParamArrayType
- GetParamTime
- GetParamMap
- GetMap
- HasMap
- GetParam
- IfHas_GetParam
- IfHas_GetParamArray
- IfHas_GetParamWithTime
- SetParam
- AddParam
- SetParamArray
- AddParamArray
- GetParamArray
- GetParamArraySize
- AddOrSetParam
- AddCopiesOfAllParamsFrom
- ForEachParam
- ForEachParamMap
- DeleteParam
- GetParamAsString
- ClearParams
getName(self: spaceteams.SC_Compute_Server.EntityConfig) -> str
Get the name of this EntityConfig
Inherited Members
- ParamMap
- unique_id
- HasParam
- ToString
- ToStringMultiline
- HasParamArray
- HasParamWithValue
- GetParamType
- GetParamArrayType
- GetParamTime
- GetParamMap
- GetMap
- HasMap
- GetParam
- IfHas_GetParam
- IfHas_GetParamArray
- IfHas_GetParamWithTime
- SetParam
- AddParam
- SetParamArray
- AddParamArray
- GetParamArray
- GetParamArraySize
- AddOrSetParam
- AddCopiesOfAllParamsFrom
- ForEachParam
- ForEachParamMap
- DeleteParam
- GetParamAsString
- ClearParams
Inherited Members
- ParamMap
- unique_id
- HasParam
- ToString
- ToStringMultiline
- HasParamArray
- HasParamWithValue
- GetParamType
- GetParamArrayType
- GetParamTime
- GetParamMap
- GetMap
- HasMap
- GetParam
- IfHas_GetParam
- IfHas_GetParamArray
- IfHas_GetParamWithTime
- SetParam
- AddParam
- SetParamArray
- AddParamArray
- GetParamArray
- GetParamArraySize
- AddOrSetParam
- AddCopiesOfAllParamsFrom
- ForEachParam
- ForEachParamMap
- DeleteParam
- GetParamAsString
- ClearParams
Inherited Members
- ParamMap
- unique_id
- HasParam
- ToString
- ToStringMultiline
- HasParamArray
- HasParamWithValue
- GetParamType
- GetParamArrayType
- GetParamTime
- GetParamMap
- GetMap
- HasMap
- GetParam
- IfHas_GetParam
- IfHas_GetParamArray
- IfHas_GetParamWithTime
- SetParam
- AddParam
- SetParamArray
- AddParamArray
- GetParamArray
- GetParamArraySize
- AddOrSetParam
- AddCopiesOfAllParamsFrom
- ForEachParam
- ForEachParamMap
- DeleteParam
- GetParamAsString
- ClearParams
AddEntity(self: spaceteams.SC_Compute_Server.SimConfig, config: spaceteams.SC_Compute_Server.EntityConfig) -> None
Adds a (assumed-properly-initialized) EntityConfig to the sim config
RemoveEntity(self: spaceteams.SC_Compute_Server.SimConfig, config: spaceteams.SC_Compute_Server.EntityConfig) -> None
Removes this referenced Entity_Base from the sim config
GetSimEntity(self: spaceteams.SC_Compute_Server.SimConfig) -> spaceteams.SC_Compute_Server.EntityConfig
Get the EntityConfig for the (singleton) SimEntity.
SetSimEntity(self: spaceteams.SC_Compute_Server.SimConfig, new_sim_entity: spaceteams.SC_Compute_Server.EntityConfig) -> None
Set the EntityConfig for the (singleton) SimEntity.
GetEntities(self: spaceteams.SC_Compute_Server.SimConfig) -> list[spaceteams.SC_Compute_Server.EntityConfig]
Get the EntityConfigs for all entities on this sim config, besides the SimEntity
AddSystem(self: spaceteams.SC_Compute_Server.SimConfig, config: spaceteams.SC_Compute_Server.SystemConfig) -> None
Adds a (assumed-properly-initialized) SystemConfig to the sim config
RemoveSystem(self: spaceteams.SC_Compute_Server.SimConfig, config: spaceteams.SC_Compute_Server.SystemConfig) -> None
Removes this referenced SystemConfig from the sim config
AddFieldEffect(self: spaceteams.SC_Compute_Server.SimConfig, config: spaceteams.SC_Compute_Server.FieldEffectConfig) -> None
Adds a (assumed-properly-initialized) FieldEffectConfig to the sim config
RemoveFieldEffect(self: spaceteams.SC_Compute_Server.SimConfig, config: spaceteams.SC_Compute_Server.FieldEffectConfig) -> None
Removes this referenced FieldEffectConfig from the sim config
AddTaskflow(self: spaceteams.SC_Compute_Server.SimConfig, config: spaceteams.SC_Compute_Server.TaskflowConfig) -> None
Adds a (assumed-properly-initialized) TaskflowConfig to the sim config.
RemoveTaskflow(self: spaceteams.SC_Compute_Server.SimConfig, config: spaceteams.SC_Compute_Server.TaskflowConfig) -> None
Removes this referenced Taskflow instance from the sim config.
GetSystems(self: spaceteams.SC_Compute_Server.SimConfig) -> list[spaceteams.SC_Compute_Server.SystemConfig]
Get the SystemConfigs for all systems on this sim config
GetTaskflows(self: spaceteams.SC_Compute_Server.SimConfig) -> list[spaceteams.SC_Compute_Server.TaskflowConfig]
Get the TaskflowConfigs for all taskflows on this sim config
GetFieldEffects(self: spaceteams.SC_Compute_Server.SimConfig) -> list[spaceteams.SC_Compute_Server.FieldEffectConfig]
Get the FieldEffectConfigs for all FieldEffects on this sim config
UsesCurrentTime(self: spaceteams.SC_Compute_Server.SimConfig) -> bool
True if the sim sets the time to real-world time when starting the sim.
GetSimStartTime(self: spaceteams.SC_Compute_Server.SimConfig) -> spaceteams.SC_Compute_Server.timestamp
Get the time of the sim clock will read at the beginning of the sim. This value will not be applicable if UsCurrentTime = true
SetSimStartTime(self: spaceteams.SC_Compute_Server.SimConfig, start_simtime: spaceteams.SC_Compute_Server.timestamp) -> None
Set the time the sim clock will read when beginning the sim. This value is not applicable if UseCurrentTime = True.
HasSimEndTime(self: spaceteams.SC_Compute_Server.SimConfig) -> bool
True if the sim has an end time (EndDateTAI)
GetSimEndTime(self: spaceteams.SC_Compute_Server.SimConfig) -> spaceteams.SC_Compute_Server.timestamp
Get the time the sim will automatically end.
SetSimEndTime(self: spaceteams.SC_Compute_Server.SimConfig, end_simtime: spaceteams.SC_Compute_Server.timestamp) -> None
Set the time the sim will automatically end.
RemoveSimEndTime(self: spaceteams.SC_Compute_Server.SimConfig) -> None
Removes the timestamped-based sim end condition
Members:
Info
Warning
Error
Fatal
Chat
Members:
Loading : Load the sim config as a starting point, independent of any other clients.
Lobby : Wait for other clients to finish connecting/loading, hang out (if applicable).
Sync : With a final client list known, enter a process where we ensure all clients are joined and warmed up before Init/Running Simstate is made available. Additionally, if a certain option is chosen, stay in SimState::Sync to enable a Sim Editing mode that hasn't run system init or update functions.
Init : In this state and future, operations that would result in a SaveSim having many differences are accepted. Without impinging on timing of updates as the Runtime state is hit, we do a final step where everything runs their init() functions, optionally with order dependencies where applicable, and we wait for ALL inits on ALL programs to finish. (TBD) For sims that are resuming from a snapshot, this MIGHT be skipped/modified?
Runtime : Timed updates begin. Physics starts moving.
Paused : (UNUSED, MAY CHANGE) In this state, we stop all network nodes if possible so something big like a host migration can happen.
Playback : (UNUSED, MAY CHANGE) In this state, the state of the Platform is being driven by recorded transactional state changes that are being streamed as PlatformOrders by one (?) of the network nodes.
Stopping : In this state, the platform is treated as undefined because network nodes are expected to disconnect at any moment. Any time a network node is in this state, the network node should work to and/close the local representation of the simulation
OnScreenLogMessage(message: str, category: str, severity: spaceteams.SC_Compute_Server.Severity, transmit: bool = True) -> None
Send message that is shown on all app screens, and stays in a log. If transmit is false, the message is only shown inside this app.
OnScreenAlert(message: str, topic: str, severity: spaceteams.SC_Compute_Server.Severity, transmit: bool = True) -> None
Send alert that is shown on all app screens, is deduplicated by topic name, and is erased after a few seconds. If transmit is false, the alert is only shown inside this app.
State vector of a body with respect to an observer. Note that we typically do not return a valid acceleration or angular acceleration. See:
(self: spaceteams.SC_Compute_Server.EphemerisResult) -> typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"]
(self: spaceteams.SC_Compute_Server.EphemerisResult) -> typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"]
(self: spaceteams.SC_Compute_Server.EphemerisResult) -> typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"]
(self: spaceteams.SC_Compute_Server.EphemerisResult) -> typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 3]"]
(self: spaceteams.SC_Compute_Server.EphemerisResult) -> typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"]
(self: spaceteams.SC_Compute_Server.EphemerisResult) -> typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"]
"Camera output modes, which affect the content and pixel format of a capture's pixels, but not its geometry."
Members:
Default : What people "expect" from a typical image.
RGB_LDR_sRGB : Red-Green-Blue channels in sRGB color space, 8 bits each.
RGB_LDR : Red-Green-Blue channels in linear color space, 8 bits each.
RGB_HDR : (UNIMPLEMENTED) Red-Green-Blue channels in linear color space, 16-bit float each.
Depth_cm : Single channel, 32-bit float, linear depth in cm.
__init__(self: spaceteams.SC_Compute_Server.OutputMode, value: typing.SupportsInt) -> None
"Physical properties of the camera that affect the image"
__init__(self: spaceteams.SC_Compute_Server.PhysicalCameraProperties) -> None
"Non-physical changes to apply to the image"
"All properties of an image to capture besides the choice of camera entity."
__init__(self: spaceteams.SC_Compute_Server.CaptureImageProperties) -> None
(self: spaceteams.SC_Compute_Server.CaptureImageProperties) -> typing.Annotated[numpy.typing.NDArray[numpy.float64], "[4, 4]"]
standalone_sim(path: os.PathLike | str | bytes) -> None
Run a simulation that is self-contained within this Python process. path - Filepath of sim config.
connect_to_sim(sys_argv: collections.abc.Sequence[str]) -> None
Connect to a running simulation as a ServerAsLocalClient. sys_argv - insert python sys.argv here.
BeforeInit(delegateFn: collections.abc.Callable[[], None]) -> None
Set a function to be called before the simulation is allowed to continue to Init state.
BeforeRuntime(delegateFn: collections.abc.Callable[[], None]) -> None
Set a function to be called before the simulation is allowed to continue to Runtime state.
leave_sim() -> None
Leave the sim without ending it for other users/programs.
stop_sim() -> None
Stop the sim, which ends it for all users/programs.
get_entities() -> list[spaceteams.SC_Compute_Server.Entity]
GetThisSystem() -> spaceteams.SC_Compute_Server.SystemConfig
get_nametag() -> str
logger_info(msg: str) -> None
Output logger information
logger_warn(msg: str) -> None
Output logger warnings
logger_error(msg: str) -> None
Output logger error
logger_fatal(msg: str) -> None
Output logger fatal error