MCPcopy Create free account
hub / github.com/OpenDriveLab/TCP / setup

Method setup

scenario_runner/srunner/autoagents/human_agent.py:100–113  ·  view source on GitHub ↗

Setup the agent parameters

(self, path_to_conf_file)

Source from the content-addressed store, hash-verified

98 agent_engaged = False
99
100 def setup(self, path_to_conf_file):
101 """
102 Setup the agent parameters
103 """
104
105 self.agent_engaged = False
106 self.current_control = carla.VehicleControl()
107 self.current_control.steer = 0.0
108 self.current_control.throttle = 1.0
109 self.current_control.brake = 0.0
110 self.current_control.hand_brake = False
111 self._hic = HumanInterface(self)
112 self._thread = Thread(target=self._hic.run)
113 self._thread.start()
114
115 def sensors(self):
116 """

Callers

nothing calls this directly

Calls 2

HumanInterfaceClass · 0.70
startMethod · 0.45

Tested by

no test coverage detected