Exemplo n.º 1
0
    def __init__(self, camera_id, n_camera_args=None, p_camera_args=None, n_distortion_args=None,
                 p_distortion_args=None, n_toc=None, p_toc=None, n_projection_err=None, p_projection_err=None,
                 found_mask=None, img_pts=None, img_size=None, obj_pts=None, location_obj=None):

        BaseObject.__init__(self)
        self.set_location(location_obj)
        self._set_data(camera_id, n_camera_args, p_camera_args, n_distortion_args, p_distortion_args, n_toc,
                       p_toc, n_projection_err, p_projection_err, found_mask, img_pts, img_size, obj_pts)
Exemplo n.º 2
0
 def __init__(self,
              g_id=None,
              single_ca_id=None,
              stereo_ca_id=None,
              dh_id=None,
              inv_id=None):
     BaseObject.__init__(self)
     self._set_data(g_id, single_ca_id, stereo_ca_id, dh_id, inv_id)
Exemplo n.º 3
0
 def __init__(self,
              robot_id,
              user_id,
              pic_date=None,
              dh_date=None,
              fb_date=None):
     BaseObject.__init__(self)
     self.location_list = []
     self._set_data(robot_id, user_id, pic_date, dh_date, fb_date)
Exemplo n.º 4
0
def after_request(response):
    try:
        BaseObject.commit()
    except SQLAlchemyError as e:
        sql_object.session.rollback()
        response.json['req_state'] = False
        response.json['title'] = str(e)
        response.data = json.dumps(response.json)
        print('ret: ', response.data)
        return response
    return response
Exemplo n.º 5
0
    def __init__(self,
                 opt_all_ik=None,
                 ik_err=None,
                 l_cam_img_pts=None,
                 r_cam_img_pts=None,
                 pixel_err=None,
                 total_pixel_err=None,
                 loc_obj=None):

        BaseObject.__init__(self)
        self.set_location(loc_obj)
        self._set_data(opt_all_ik, ik_err, l_cam_img_pts, r_cam_img_pts,
                       pixel_err, total_pixel_err)
Exemplo n.º 6
0
    def __init__(self,
                 model,
                 angle_offset_full=None,
                 joint_scale_factor=None,
                 refine_pixel_err=None,
                 robot_param=None,
                 tot=None,
                 trc=None,
                 a_offset_six_param=None,
                 c_offset_six_param=None,
                 loc_obj=None):

        BaseObject.__init__(self)
        self.set_location(loc_obj)
        self._set_data(model, angle_offset_full, joint_scale_factor,
                       refine_pixel_err, robot_param, tot, trc,
                       a_offset_six_param, c_offset_six_param)
Exemplo n.º 7
0
    def __init__(self,
                 l_camera_id,
                 r_camera_id,
                 l_cam_matrix=None,
                 r_cam_matrix=None,
                 l_dist_coeffs=None,
                 r_dist_coeffs=None,
                 rt_cam_a2_cam_b=None,
                 stereo_e=None,
                 stereo_f=None,
                 stereo_r=None,
                 pixel_err=None,
                 loc_obj=None):

        BaseObject.__init__(self)
        self.set_location(loc_obj)
        self._set_data(l_camera_id, r_camera_id, l_cam_matrix, r_cam_matrix,
                       l_dist_coeffs, r_dist_coeffs, rt_cam_a2_cam_b, stereo_e,
                       stereo_f, stereo_r, pixel_err, loc_obj)
Exemplo n.º 8
0
 def __init__(self, account, password, nickname):
     BaseObject.__init__(self)
     self._set_data(account, password, nickname)
Exemplo n.º 9
0
 def __init__(self, id, use_type, producer):
     BaseObject.__init__(self)
     self._set_data(id, use_type, producer)