Marine systems simulation
Camera controller

Control movement of camera.

+ Collaboration diagram for Camera controller:

CCameraController class Controls the movement of the camera relative to specified targets (positions), while pointing towards the current target. This is done by internally moving the camera along a 3D spline of distance, azimuth and elevation relative to a position. This position is found as a interpolation between the previous and the current target position. This interpolation is done between the start time of the current position and the smallest time interval of the specified interpolation time and the time to the next target.

The target positions are specified by distance, azimuth and elevation, in addition to the time to start following it.

Author
Karl-Johan Reite

Example configuration excerpt

<Lib LibName = "fhsim_base"
SimObject = "Camera/Controller"
Name = "camcontrol"
Times = " 0, 2, 4, 6"
Distance = " 50, 40, 30, 60"
Azimuth = " 0, 45, 90, 135"
Elevation = " -10, -5, -30, -4"
PositionFilterTime = "1"
/>
Name Width Description
Pos1 3 The position of the first target.
PosN1 3 The position of the N'th target.

Output Ports

No output ports available.

Configuration parameters

Name Width Description
Times <Number of waypoints> The time to start tracking each waypoint.
Distance <Number of waypoints> The camera distance to each waypoint.
Azimuth <Number of waypoints> The camera azimuth when following each waypoint.
Elevation <Number of waypoints> The camera elevation when following each waypoint.
PositionFilterTime 1 The time to filter the target position when changing target. Default is 1 second.

Initial conditions

This SimObject contains no initial conditions.

This SimObject is referred to as Camera/Controller