Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def control_go_to(self, joints, wait_for_ready=True, max_speed=None, time_sec=None, mode='teach'):
self.__logger.info('Eva.control_go_to called')
if mode == 'teach':
with self.__eva_locker.set_renew_period(Eva.__TEACH_RENEW_PERIOD):
return self.__http_client.control_go_to(joints, wait_for_ready=wait_for_ready, max_speed=max_speed, time_sec=time_sec, mode=mode)
else:
return self.__http_client.control_go_to(joints, wait_for_ready=wait_for_ready, max_speed=max_speed, time_sec=time_sec, mode=mode)