Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vision
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
plugins
vision
Commits
3f651b3d
Commit
3f651b3d
authored
9 years ago
by
Pier Tirindelli
Browse files
Options
Downloads
Patches
Plain Diff
deleted test_gps_wolf
Unused classes?
#25
parent
c12d7fff
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/constraint_gps_pseudorange_2D.h
+1
-4
1 addition, 4 deletions
src/constraint_gps_pseudorange_2D.h
src/examples/CMakeLists.txt
+0
-7
0 additions, 7 deletions
src/examples/CMakeLists.txt
src/examples/test_gps_wolf.cpp
+0
-597
0 additions, 597 deletions
src/examples/test_gps_wolf.cpp
with
1 addition
and
608 deletions
src/constraint_gps_pseudorange_2D.h
+
1
−
4
View file @
3f651b3d
...
@@ -214,18 +214,15 @@ inline bool ConstraintGPSPseudorange2D::operator ()(const T* const _vehicle_p, c
...
@@ -214,18 +214,15 @@ inline bool ConstraintGPSPseudorange2D::operator ()(const T* const _vehicle_p, c
*/
*/
T
square_sum
=
T
(
0
);
T
square_sum
=
T
(
0
);
for
(
int
i
=
0
;
i
<
3
;
++
i
)
for
(
int
i
=
0
;
i
<
3
;
++
i
)
{
square_sum
+=
(
sensor_p_ecef
[
i
]
-
T
(
sat_position_
[
i
]))
*
(
sensor_p_ecef
[
i
]
-
T
(
sat_position_
[
i
]));
square_sum
+=
(
sensor_p_ecef
[
i
]
-
T
(
sat_position_
[
i
]))
*
(
sensor_p_ecef
[
i
]
-
T
(
sat_position_
[
i
]));
}
T
distance
=
(
square_sum
!=
T
(
0
))
?
sqrt
(
square_sum
)
:
T
(
0
);
T
distance
=
(
square_sum
!=
T
(
0
))
?
sqrt
(
square_sum
)
:
T
(
0
);
// error = (expected measurement) - (actual measurement)
// error = (expected measurement) - (actual measurement)
_residual
[
0
]
=
(
distance
+
_bias
[
0
]
*
T
(
LIGHT_SPEED
))
-
(
pseudorange_
);
_residual
[
0
]
=
(
distance
+
_bias
[
0
]
*
T
(
LIGHT_SPEED
))
-
(
pseudorange_
);
if
(
verbose_level_
>=
2
)
if
(
verbose_level_
>=
2
)
{
std
::
cout
<<
"!!! Residual: "
<<
_residual
[
0
]
<<
"
\n
"
;
std
::
cout
<<
"!!! Residual: "
<<
_residual
[
0
]
<<
"
\n
"
;
}
// normalizing by the covariance
// normalizing by the covariance
_residual
[
0
]
=
_residual
[
0
]
/
T
(
getMeasurementCovariance
()(
0
,
0
));
//T(sqrt(getMeasurementCovariance()(0, 0)));
_residual
[
0
]
=
_residual
[
0
]
/
T
(
getMeasurementCovariance
()(
0
,
0
));
//T(sqrt(getMeasurementCovariance()(0, 0)));
...
...
This diff is collapsed.
Click to expand it.
src/examples/CMakeLists.txt
+
0
−
7
View file @
3f651b3d
...
@@ -96,10 +96,3 @@ IF(faramotics_FOUND)
...
@@ -96,10 +96,3 @@ IF(faramotics_FOUND)
ENDIF
(
laser_scan_utils_FOUND
)
ENDIF
(
laser_scan_utils_FOUND
)
ENDIF
(
faramotics_FOUND
)
ENDIF
(
faramotics_FOUND
)
# Testing GPS stuff
IF
(
raw_gps_utils_FOUND
)
ADD_EXECUTABLE
(
test_gps_wolf test_gps_wolf.cpp
)
TARGET_LINK_LIBRARIES
(
test_gps_wolf
${
raw_gps_utils_LIBRARY
}
${
PROJECT_NAME
}
)
ENDIF
(
raw_gps_utils_FOUND
)
This diff is collapsed.
Click to expand it.
src/examples/test_gps_wolf.cpp
deleted
100644 → 0
+
0
−
597
View file @
c12d7fff
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment