Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bigprint
Universal_Robots_ROS_Driver
Commits
48320154
Commit
48320154
authored
Mar 09, 2020
by
Jayant Khatkar
Browse files
fixed calibration file generation - error was in the error check
parent
d4e1e6a2
Pipeline
#448
failed with stage
in 1 minute and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ur_calibration/src/calibration_correction.cpp
View file @
48320154
...
...
@@ -104,20 +104,21 @@ public:
ROS_ERROR_STREAM
(
"Calibration data not yet set."
);
return
false
;
}
fs
::
path
out_path
=
fs
::
complete
(
output_filename_
);
fs
::
path
dst_path
=
out_path
.
parent_path
();
if
(
!
fs
::
exists
(
dst_path
))
{
ROS_ERROR_STREAM
(
"Parent folder "
<<
dst_path
<<
" does not exist."
);
return
false
;
}
ROS_INFO_STREAM
(
"Writing calibration data to "
<<
out_path
);
if
(
fs
::
exists
(
output_filename_
))
{
ROS_WARN_STREAM
(
"Output file "
<<
output_filename_
<<
" already exists. Overwriting."
);
}
std
::
cout
<<
"output_filename: "
<<
output_filename_
<<
std
::
endl
;
// fs::path out_path = fs::complete(output_filename_);
// fs::path dst_path = out_path.parent_path();
// if (!fs::exists(dst_path))
// {
// ROS_ERROR_STREAM("Parent folder " << dst_path << " does not exist.");
// return false;
// }
// ROS_INFO_STREAM("Writing calibration data to " << out_path);
// if (fs::exists(output_filename_))
// {
// ROS_WARN_STREAM("Output file " << output_filename_ << " already exists. Overwriting.");
// }
std
::
ofstream
file
(
output_filename_
);
if
(
file
.
is_open
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment