tbp.monty.simulators#
- tbp.monty.simulators.habitat
- tbp.monty.simulators.habitat.actions
- tbp.monty.simulators.habitat.actuator
HabitatActuatorHabitatActuator.action_name()HabitatActuator.actuate_look_down()HabitatActuator.actuate_look_up()HabitatActuator.actuate_move_forward()HabitatActuator.actuate_move_tangentially()HabitatActuator.actuate_orient_horizontal()HabitatActuator.actuate_orient_vertical()HabitatActuator.actuate_set_agent_pitch()HabitatActuator.actuate_set_agent_pose()HabitatActuator.actuate_set_sensor_pitch()HabitatActuator.actuate_set_sensor_pose()HabitatActuator.actuate_set_sensor_rotation()HabitatActuator.actuate_set_yaw()HabitatActuator.actuate_turn_left()HabitatActuator.actuate_turn_right()HabitatActuator.to_habitat()
HabitatActuatorRequirements
- tbp.monty.simulators.habitat.agents
HabitatAgentMultiSensorAgentMultiSensorAgent.agent_idMultiSensorAgent.sensor_idsMultiSensorAgent.resolutionsMultiSensorAgent.positionsMultiSensorAgent.rotationsMultiSensorAgent.zoomsMultiSensorAgent.semanticsMultiSensorAgent.heightMultiSensorAgent.rotation_stepMultiSensorAgent.translation_stepMultiSensorAgent.action_space_typeMultiSensorAgent.__init__()MultiSensorAgent.get_spec()MultiSensorAgent.initialize()
SingleSensorAgent
- tbp.monty.simulators.habitat.environment
AgentConfigHabitatEnvironmentHabitatEnvironment.agentsHabitatEnvironment.objectsHabitatEnvironment.scene_idHabitatEnvironment.seedHabitatEnvironment.data_pathHabitatEnvironment.__init__()HabitatEnvironment.add_object()HabitatEnvironment.close()HabitatEnvironment.get_state()HabitatEnvironment.remove_all_objects()HabitatEnvironment.reset()HabitatEnvironment.step()
MultiSensorAgentArgsMultiSensorAgentArgs.__init__()MultiSensorAgentArgs.action_space_typeMultiSensorAgentArgs.agent_idMultiSensorAgentArgs.heightMultiSensorAgentArgs.positionMultiSensorAgentArgs.positionsMultiSensorAgentArgs.resolutionsMultiSensorAgentArgs.rotationMultiSensorAgentArgs.rotation_stepMultiSensorAgentArgs.rotationsMultiSensorAgentArgs.semanticsMultiSensorAgentArgs.sensor_idsMultiSensorAgentArgs.translation_stepMultiSensorAgentArgs.zooms
ObjectConfigSingleSensorAgentArgsSingleSensorAgentArgs.__init__()SingleSensorAgentArgs.action_space_typeSingleSensorAgentArgs.agent_idSingleSensorAgentArgs.agent_positionSingleSensorAgentArgs.heightSingleSensorAgentArgs.resolutionSingleSensorAgentArgs.rotationSingleSensorAgentArgs.rotation_stepSingleSensorAgentArgs.semanticSingleSensorAgentArgs.sensor_idSingleSensorAgentArgs.sensor_positionSingleSensorAgentArgs.translation_stepSingleSensorAgentArgs.zoom
- tbp.monty.simulators.habitat.sensors
- tbp.monty.simulators.habitat.simulator
HabitatSimHabitatSim.agentsHabitatSim.data_pathHabitatSim.scene_idHabitatSim.seedHabitatSim.__init__()HabitatSim.add_object()HabitatSim.apply_actions()HabitatSim.check_viewpoint_collision()HabitatSim.close()HabitatSim.find_non_colliding_positions()HabitatSim.get_agent()HabitatSim.initialize_agent()HabitatSim.non_conflicting_vector()HabitatSim.process_observations()HabitatSim.remove_all_objects()HabitatSim.reset()HabitatSim.action_spaceHabitatSim.num_objectsHabitatSim.observationsHabitatSim.states
PRIMITIVE_OBJECT_TYPES
- tbp.monty.simulators.mujoco
- tbp.monty.simulators.resources
- tbp.monty.simulators.tacto
- tbp.monty.simulators.tacto.agents
- tbp.monty.simulators.tacto.config
TactoSensorSpecTactoSensorSpec.nameTactoSensorSpec.cameraTactoSensorSpec.gelTactoSensorSpec.lightsTactoSensorSpec.noiseTactoSensorSpec.forceTactoSensorSpec.__init__()TactoSensorSpec.from_yaml()TactoSensorSpec.cameraTactoSensorSpec.forceTactoSensorSpec.gelTactoSensorSpec.lightsTactoSensorSpec.nameTactoSensorSpec.noise
- tbp.monty.simulators.tacto.sensors
tbp.monty.simulators.simulator#
- class Simulator(*args, **kwargs)[source]#
Bases:
ProtocolA Protocol defining a simulator for use in simulated environments.
A Simulator is responsible for a simulated environment that contains objects to interact with, agents to do the interacting, and for collecting observations and proprioceptive state to send to Monty.
- __init__(*args, **kwargs)#
- add_object(name: str, position: VectorXYZ = (0.0, 0.0, 0.0), rotation: QuaternionWXYZ = (1.0, 0.0, 0.0, 0.0), scale: VectorXYZ = (1.0, 1.0, 1.0), semantic_id: SemanticID | None = None, primary_target_object: ObjectID | None = None) ObjectInfo[source]#
Add new object to simulated environment.
Adds a new object based on the named object. This assumes that the set of available objects are preloaded and keyed by name.
- Parameters:
name (str) – Registered object name.
position (VectorXYZ) – Initial absolute position of the object.
rotation (QuaternionWXYZ) – Initial orientation of the object.
scale (VectorXYZ) – Initial object scale.
semantic_id (SemanticID | None) – Optional override for the object’s semantic ID.
primary_target_object (ObjectID | None) – ID of the primary target object. If not None, the added object will be positioned so that it does not obscure the initial view of the primary target object (which avoiding collision alone cannot guarantee). Used when adding multiple objects. Defaults to None.
- Return type:
ObjectInfo
- Returns:
The added object’s information.
- apply_actions(actions: Sequence[Action]) dict[str, dict][source]#
Execute the given actions in the environment.
- Parameters:
actions – The actions to execute.
- Returns:
A dictionary with the observations grouped by agent_id.
Note
If the actions are an empty sequence, the current observations are returned.
- initialize_agent(agent_id: AgentID, agent_state) None[source]#
Update agent runtime state.
- Return type:
- property observations#
Get sensor observations.
- property states#
Get agent and sensor states.