simulation.src.simulation_evaluation.src.state_machine package
Subpackages
- simulation.src.simulation_evaluation.src.state_machine.state_machines package
- Submodules
- simulation.src.simulation_evaluation.src.state_machine.state_machines.lane module
- simulation.src.simulation_evaluation.src.state_machine.state_machines.overtaking module
- simulation.src.simulation_evaluation.src.state_machine.state_machines.parking module
- simulation.src.simulation_evaluation.src.state_machine.state_machines.priority module
- simulation.src.simulation_evaluation.src.state_machine.state_machines.progress module
- simulation.src.simulation_evaluation.src.state_machine.state_machines.speed module
SpeedStateMachineSpeedStateMachine.speed_no_limitSpeedStateMachine.failure_ignored_speed_limitSpeedStateMachine.speed_10_limitSpeedStateMachine.speed_20_limitSpeedStateMachine.speed_30_limitSpeedStateMachine.speed_40_limitSpeedStateMachine.speed_50_limitSpeedStateMachine.speed_60_limitSpeedStateMachine.speed_70_limitSpeedStateMachine.speed_80_limitSpeedStateMachine.speed_90_limit
- simulation.src.simulation_evaluation.src.state_machine.state_machines.state_machine module
- Module contents
- simulation.src.simulation_evaluation.src.state_machine.states package
- Submodules
- simulation.src.simulation_evaluation.src.state_machine.states.lane module
- simulation.src.simulation_evaluation.src.state_machine.states.overtaking module
- simulation.src.simulation_evaluation.src.state_machine.states.parking module
- simulation.src.simulation_evaluation.src.state_machine.states.priority module
- simulation.src.simulation_evaluation.src.state_machine.states.progress module
- simulation.src.simulation_evaluation.src.state_machine.states.speed module
- simulation.src.simulation_evaluation.src.state_machine.states.state module
- Module contents
Submodules
simulation.src.simulation_evaluation.src.state_machine.node module
Track the state of a simulated drive.
Functions:
|
Log the state of each state machine. |
Classes:
ROS node which tracks the state of a simulated drive. |
- log(logger: ~typing.Callable[[str], None] = <function loginfo>)[source]
Log the state of each state machine.
- Parameters:
logger – Function to which the log message should be sent
- class StateMachineNode[source]
Bases:
NodeBaseROS node which tracks the state of a simulated drive.
- info_publisher
Publish human readable states on change
- Type:
rospy.Publisher
- zone_subscriber
Subscribes to zone of speaker
- Type:
rospy.Subscriber
- location_subscriber
Subscribes to location of speaker
- Type:
rospy.Subscriber
- events_subscriber
Subscribes to events of speaker
- Type:
rospy.Subscriber
- speed_subscriber
Subscribes to speed of speaker
- Type:
rospy.Subscriber
- set_subscribers
Subscribes to …/set
- Type:
List[rospy.Subscriber]
- sm_publishers
Publishes to …/state
- Type:
List[rospy.Publisher]
- state_machines
Array of all StateMachine
- Type:
List[StateMachine]
Methods:
start()Start node.
Init each state machine.
stop()Turn off node.
publish_updates(*args, **kwargs)on_msg(*args, **kwargs)set_state_machine(new_msg, state_machine)Update state machine manually.
- initalize_state_machines()[source]
Init each state machine.
Creates a list with each StateMachine in .state_machines, creates a publisher for each get topic in .sm_publishers and creates a subscriper for each set topic in .set_publishers.
- set_state_machine(new_msg: State, state_machine: StateMachine)[source]
Update state machine manually.
- Parameters:
new_msg – Message of the state to which the state machine should be set to
state_machine (StateMachine) – State machine to be changed
Module contents
The StateMachineNode handels multiple state machines.
It subscribes to the speaker, parses the messages to the state machines and publishes it’s changes.