Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_htc_vive_tracker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
labrobotica
ros
sensors
iri_htc_vive_tracker
Merge requests
!2
finished switching from tf2 to tf
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
finished switching from tf2 to tf
switch_to_tf_from_tf2
into
master
Overview
0
Commits
1
Pipelines
0
Changes
8
Merged
Laia Freixas Mateu
requested to merge
switch_to_tf_from_tf2
into
master
6 years ago
Overview
0
Commits
1
Pipelines
0
Changes
8
Expand
Done
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
6d4762a5
1 commit,
6 years ago
8 files
+
74
−
73
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
cfg/calibration.cpp
+
0
−
4
Options
@@ -28,10 +28,8 @@ bool IsNumber (char c){
return
false
;
}
void
AddValueToField
(
std
::
string
&
num
,
std
::
string
&
field
,
CalibrationInfo
c
){
std
::
cout
<<
"adding "
<<
num
<<
" to "
<<
field
<<
std
::
endl
;
if
(
field
==
"x"
){
c
.
t
.
x
=
std
::
stod
(
num
);
std
::
cout
<<
c
.
t
.
x
<<
std
::
endl
;
}
else
if
(
field
==
"y"
){
c
.
t
.
y
=
std
::
stod
(
num
);
}
else
if
(
field
==
"z"
){
@@ -65,9 +63,7 @@ CalibrationInfo ReadCalibrationFromJSONFile (const char * file_path){
current_field
=
current_field
+
c
;
}
// std::cout<<c<<std::endl;
}
std
::
cout
<<
calibration_info
.
t
.
x
<<
std
::
endl
;
}
int
main
(){
Loading