def get_thruster_info(self, srv): query_id = srv.thruster_id min_thrust = -100 max_thrust = 90 thruster_info = ThrusterInfoResponse(min_force=min_thrust, max_force=max_thrust) return thruster_info
def get_thruster_info(self, srv): '''Get the thruster info for a particular thruster ID Right now, this is only the min and max thrust data ''' # Unused right now # query_id = srv.thruster_id min_thrust = min(self.interpolate.x) max_thrust = max(self.interpolate.x) thruster_info = ThrusterInfoResponse(min_force=min_thrust, max_force=max_thrust) return thruster_info
def get_thruster_info(self, srv): ''' Get the thruster info for a particular thruster name ''' query_name = srv.thruster_name info = self.ports[ self.thruster_to_port_map[query_name]].thruster_info[query_name] thruster_info = ThrusterInfoResponse( node_id=info.node_id, min_force=info.thrust_bounds[0], max_force=info.thrust_bounds[1], position=numpy_to_point(info.position), direction=Vector3(*info.direction)) return thruster_info