Class: GPS_PVT::GPS::Solver
- Inherits:
-
Object
- Object
- GPS_PVT::GPS::Solver
- Defined in:
- ext/gps_pvt/GPS/GPS_wrap.cxx,
ext/gps_pvt/GPS/GPS_wrap.cxx
Overview
Proxy of C++ GPS_PVT::GPS::Solver class
Instance Method Summary collapse
-
#correction(*args) ⇒ Object
call-seq: correction -> VALUE.
-
#correction=(*args) ⇒ Object
call-seq: correction=(VALUE hash) -> VALUE.
-
#glonass_options(*args) ⇒ Object
call-seq: glonass_options -> SolverOptions_GLONASS.
-
#glonass_space_node(*args) ⇒ Object
call-seq: glonass_space_node -> SpaceNode_GLONASS.
-
#gps_options(*args) ⇒ Object
call-seq: gps_options -> SolverOptions.
-
#gps_space_node(*args) ⇒ Object
call-seq: gps_space_node -> SpaceNode.
-
#hooks(*args) ⇒ Object
call-seq: hooks -> VALUE.
-
#initialize(*args) ⇒ Object
constructor
call-seq: Solver.new.
-
#options(*args) ⇒ Object
call-seq: options -> GPS_Solver< double >::super_t::options_t.
-
#options=(*args) ⇒ Object
call-seq: options=(VALUE obj) -> GPS_Solver< double >::super_t::options_t.
-
#sbas_options(*args) ⇒ Object
call-seq: sbas_options -> SolverOptions_SBAS.
-
#sbas_space_node(*args) ⇒ Object
call-seq: sbas_space_node -> SpaceNode_SBAS.
-
#solve(*args) ⇒ Object
call-seq: solve(Measurement measurement, Time receiver_time) -> PVT.
Constructor Details
#initialize(*args) ⇒ Object
16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 |
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 16268
SWIGINTERN VALUE
_wrap_new_Solver(int argc, VALUE *argv, VALUE self) {
GPS_Solver< double > *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (GPS_Solver< double > *)new GPS_Solver< double >();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#correction(*args) ⇒ Object
call-seq:
correction -> VALUE
An instance method.
16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 |
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 16549
SWIGINTERN VALUE
_wrap_Solver_correction(int argc, VALUE *argv, VALUE self) {
GPS_Solver< double > *arg1 = (GPS_Solver< double > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
VALUE result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GPS_SolverT_double_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GPS_Solver< double > const *","get_correction", 1, self ));
}
arg1 = reinterpret_cast< GPS_Solver< double > * >(argp1);
result = (VALUE)GPS_Solver_Sl_double_Sg__get_correction((GPS_Solver< double > const *)arg1);
vresult = result;
return vresult;
fail:
return Qnil;
}
|
#correction=(*args) ⇒ Object
call-seq:
correction=(VALUE hash) -> VALUE
An instance method.
16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 |
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 16582
SWIGINTERN VALUE
_wrap_Solver_correctione___(int argc, VALUE *argv, VALUE self) {
GPS_Solver< double > *arg1 = (GPS_Solver< double > *) 0 ;
VALUE arg2 = (VALUE) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
VALUE result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GPS_SolverT_double_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GPS_Solver< double > *","set_correction", 1, self ));
}
arg1 = reinterpret_cast< GPS_Solver< double > * >(argp1);
arg2 = argv[0];
try {
result = (VALUE)GPS_Solver_Sl_double_Sg__set_correction(arg1,arg2);
} catch(std::invalid_argument &_e) {
SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
}
vresult = result;
return vresult;
fail:
return Qnil;
}
|
#glonass_options(*args) ⇒ Object
call-seq:
glonass_options -> SolverOptions_GLONASS
An instance method.
16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 |
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 16457
SWIGINTERN VALUE
_wrap_Solver_glonass_options(int argc, VALUE *argv, VALUE self) {
GPS_Solver< double > *arg1 = (GPS_Solver< double > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
GLONASS_SolverOptions< double > *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GPS_SolverT_double_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GPS_Solver< double > *","glonass_options", 1, self ));
}
arg1 = reinterpret_cast< GPS_Solver< double > * >(argp1);
result = (GLONASS_SolverOptions< double > *) &(arg1)->glonass_options();
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLONASS_SolverOptionsT_double_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#glonass_space_node(*args) ⇒ Object
call-seq:
glonass_space_node -> SpaceNode_GLONASS
An instance method.
16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 |
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 16424
SWIGINTERN VALUE
_wrap_Solver_glonass_space_node(int argc, VALUE *argv, VALUE self) {
GPS_Solver< double > *arg1 = (GPS_Solver< double > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
GLONASS_SpaceNode< double > *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GPS_SolverT_double_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GPS_Solver< double > *","glonass_space_node", 1, self ));
}
arg1 = reinterpret_cast< GPS_Solver< double > * >(argp1);
result = (GLONASS_SpaceNode< double > *) &(arg1)->glonass_space_node();
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLONASS_SpaceNodeT_double_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#gps_options(*args) ⇒ Object
call-seq:
gps_options -> SolverOptions
An instance method.
16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 |
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 16325
SWIGINTERN VALUE
_wrap_Solver_gps_options(int argc, VALUE *argv, VALUE self) {
GPS_Solver< double > *arg1 = (GPS_Solver< double > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
GPS_SolverOptions< double > *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GPS_SolverT_double_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GPS_Solver< double > *","gps_options", 1, self ));
}
arg1 = reinterpret_cast< GPS_Solver< double > * >(argp1);
result = (GPS_SolverOptions< double > *) &(arg1)->gps_options();
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPS_SolverOptionsT_double_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#gps_space_node(*args) ⇒ Object
call-seq:
gps_space_node -> SpaceNode
An instance method.
16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 |
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 16292
SWIGINTERN VALUE
_wrap_Solver_gps_space_node(int argc, VALUE *argv, VALUE self) {
GPS_Solver< double > *arg1 = (GPS_Solver< double > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
GPS_SpaceNode< double > *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GPS_SolverT_double_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GPS_Solver< double > *","gps_space_node", 1, self ));
}
arg1 = reinterpret_cast< GPS_Solver< double > * >(argp1);
result = (GPS_SpaceNode< double > *) &(arg1)->gps_space_node();
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPS_SpaceNodeT_double_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#hooks(*args) ⇒ Object
call-seq:
hooks -> VALUE
Get value of attribute.
16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 |
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 16220
SWIGINTERN VALUE
_wrap_Solver_hooks_get(int argc, VALUE *argv, VALUE self) {
GPS_Solver< double > *arg1 = (GPS_Solver< double > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
VALUE result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GPS_SolverT_double_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GPS_Solver< double > *","hooks", 1, self ));
}
arg1 = reinterpret_cast< GPS_Solver< double > * >(argp1);
result = (VALUE) ((arg1)->hooks);
vresult = result;
return vresult;
fail:
return Qnil;
}
|
#options(*args) ⇒ Object
call-seq:
options -> GPS_Solver< double >::super_t::options_t
An instance method.
16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 |
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 16621
SWIGINTERN VALUE
_wrap_Solver_options(int argc, VALUE *argv, VALUE self) {
GPS_Solver< double > *arg1 = (GPS_Solver< double > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
GPS_Solver< double >::super_t::options_t result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GPS_SolverT_double_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GPS_Solver< double > const *","get_options", 1, self ));
}
arg1 = reinterpret_cast< GPS_Solver< double > * >(argp1);
result = GPS_Solver_Sl_double_Sg__get_options((GPS_Solver< double > const *)arg1);
{
VALUE res(rb_hash_new());
rb_hash_aset(res, ID2SYM(rb_intern("skip_exclusion")), SWIG_From_bool ((&result)->skip_exclusion));
vresult = res;
}
return vresult;
fail:
return Qnil;
}
|
#options=(*args) ⇒ Object
call-seq:
options=(VALUE obj) -> GPS_Solver< double >::super_t::options_t
An instance method.
16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 |
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 16658
SWIGINTERN VALUE
_wrap_Solver_optionse___(int argc, VALUE *argv, VALUE self) {
GPS_Solver< double > *arg1 = (GPS_Solver< double > *) 0 ;
VALUE arg2 = (VALUE) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
GPS_Solver< double >::super_t::options_t result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GPS_SolverT_double_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GPS_Solver< double > *","set_options", 1, self ));
}
arg1 = reinterpret_cast< GPS_Solver< double > * >(argp1);
arg2 = argv[0];
result = GPS_Solver_Sl_double_Sg__set_options(arg1,arg2);
{
VALUE res(rb_hash_new());
rb_hash_aset(res, ID2SYM(rb_intern("skip_exclusion")), SWIG_From_bool ((&result)->skip_exclusion));
vresult = res;
}
return vresult;
fail:
return Qnil;
}
|
#sbas_options(*args) ⇒ Object
call-seq:
sbas_options -> SolverOptions_SBAS
An instance method.
16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 |
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 16391
SWIGINTERN VALUE
_wrap_Solver_sbas_options(int argc, VALUE *argv, VALUE self) {
GPS_Solver< double > *arg1 = (GPS_Solver< double > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
SBAS_SolverOptions< double > *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GPS_SolverT_double_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GPS_Solver< double > *","sbas_options", 1, self ));
}
arg1 = reinterpret_cast< GPS_Solver< double > * >(argp1);
result = (SBAS_SolverOptions< double > *) &(arg1)->sbas_options();
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SBAS_SolverOptionsT_double_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#sbas_space_node(*args) ⇒ Object
call-seq:
sbas_space_node -> SpaceNode_SBAS
An instance method.
16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 |
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 16358
SWIGINTERN VALUE
_wrap_Solver_sbas_space_node(int argc, VALUE *argv, VALUE self) {
GPS_Solver< double > *arg1 = (GPS_Solver< double > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
SBAS_SpaceNode< double > *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GPS_SolverT_double_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GPS_Solver< double > *","sbas_space_node", 1, self ));
}
arg1 = reinterpret_cast< GPS_Solver< double > * >(argp1);
result = (SBAS_SpaceNode< double > *) &(arg1)->sbas_space_node();
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SBAS_SpaceNodeT_double_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#solve(*args) ⇒ Object
call-seq:
solve(Measurement measurement, Time receiver_time) -> PVT
An instance method.
16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 |
# File 'ext/gps_pvt/GPS/GPS_wrap.cxx', line 16490
SWIGINTERN VALUE
_wrap_Solver_solve(int argc, VALUE *argv, VALUE self) {
GPS_Solver< double > *arg1 = (GPS_Solver< double > *) 0 ;
GPS_Measurement< double > *arg2 = 0 ;
GPS_Time< double > *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
GPS_Measurement< double > temp2 ;
void *argp3 ;
int res3 = 0 ;
GPS_User_PVT< double > result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GPS_SolverT_double_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GPS_Solver< double > const *","solve", 1, self ));
}
arg1 = reinterpret_cast< GPS_Solver< double > * >(argp1);
{
if((!SWIG_IsOK(SWIG_ConvertPtr(argv[0], (void **)&arg2, SWIGTYPE_p_GPS_MeasurementT_double_t, 0)))
&& (!SWIG_IsOK(swig::asval(argv[0], (arg2 = &temp2))))){
SWIG_exception(SWIG_TypeError, "in method 'solve', expecting type GPS_Measurement< double >");
}
}
res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_GPS_TimeT_double_t, 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "GPS_Time< double > const &","solve", 3, argv[1] ));
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GPS_Time< double > const &","solve", 3, argv[1]));
}
arg3 = reinterpret_cast< GPS_Time< double > * >(argp3);
try {
result = ((GPS_Solver< double > const *)arg1)->solve((GPS_Measurement< double > const &)*arg2,(GPS_Time< double > const &)*arg3);
} catch(native_exception &_e) {
(&_e)->regenerate();
SWIG_fail;
} catch(std::runtime_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
}
vresult = SWIG_NewPointerObj((new GPS_User_PVT< double >(static_cast< const GPS_User_PVT< double >& >(result))), SWIGTYPE_p_GPS_User_PVTT_double_t, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
|