Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
fmt_converter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xuebingbing
fmt_converter
Commits
a9d2c83b
Commit
a9d2c83b
authored
Jan 08, 2021
by
xuebingbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 适配gnu编译器
parent
d14afb3e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
convertor.cpp
src/jfhdconvert/convertor.cpp
+1
-1
main.cpp
src/jfhdconvertor/main.cpp
+2
-2
No files found.
src/jfhdconvert/convertor.cpp
View file @
a9d2c83b
...
@@ -183,7 +183,7 @@ namespace jfhd {
...
@@ -183,7 +183,7 @@ namespace jfhd {
{
{
}
}
bool
Convertor
::
Pcd2Las
(
const
std
::
string
&
pcdfilepath
,
std
::
string
&
lasfilepath
,
const
Pcd2LasInfo
&
info
,
std
::
string
*
errormsg
)
bool
Convertor
::
Pcd2Las
(
const
std
::
string
&
pcdfilepath
,
const
std
::
string
&
lasfilepath
,
const
Pcd2LasInfo
&
info
,
std
::
string
*
errormsg
)
{
{
//std::string pcdfilepath{ "E:/data/jd/task1-2/1106/JF_PCD/12_ground_utm_add.pcd" };
//std::string pcdfilepath{ "E:/data/jd/task1-2/1106/JF_PCD/12_ground_utm_add.pcd" };
Eigen
::
Vector4f
origin
;
Eigen
::
Vector4f
origin
;
...
...
src/jfhdconvertor/main.cpp
View file @
a9d2c83b
...
@@ -521,7 +521,7 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult)
...
@@ -521,7 +521,7 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult)
jf_stationfilepath
=
system_complete
(
jf_stationfilepath
,
sys_err_code
);
jf_stationfilepath
=
system_complete
(
jf_stationfilepath
,
sys_err_code
);
//auto jf_stationfilepath = system_complete(path(temp), sys_err_code);
//auto jf_stationfilepath = system_complete(path(temp), sys_err_code);
if
(
sys_err_code
.
failed
()
||
!
exists
(
jf_stationfilepath
)
||
!
is_regular_file
(
jf_stationfilepath
))
if
(
0
!=
sys_err_code
.
value
()
||
!
exists
(
jf_stationfilepath
)
||
!
is_regular_file
(
jf_stationfilepath
))
{
{
std
::
cout
<<
"ERROR:"
<<
currentmode
<<
" 找不到觉非站心文件:"
<<
jf_stationfilepath
.
string
()
<<
" DETAIL:"
<<
sys_err_code
.
message
()
<<
std
::
endl
;
std
::
cout
<<
"ERROR:"
<<
currentmode
<<
" 找不到觉非站心文件:"
<<
jf_stationfilepath
.
string
()
<<
" DETAIL:"
<<
sys_err_code
.
message
()
<<
std
::
endl
;
return
-
1
;
return
-
1
;
...
@@ -561,7 +561,7 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult)
...
@@ -561,7 +561,7 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult)
return
-
1
;
return
-
1
;
}
}
auto
las_filepath
=
system_complete
(
path
(
temp
),
sys_err_code
);
auto
las_filepath
=
system_complete
(
path
(
temp
),
sys_err_code
);
if
(
!
sys_err_code
&&
!
sys_err_code
.
failed
()
&&
exists
(
las_filepath
)
&&
is_regular_file
(
las_filepath
))
if
(
!
sys_err_code
&&
exists
(
las_filepath
)
&&
is_regular_file
(
las_filepath
))
{
{
std
::
cout
<<
"INFO:"
<<
currentmode
<<
" 指定输出las文件已存在,将覆盖原文件 "
<<
las_filepath
.
string
()
<<
std
::
endl
;
std
::
cout
<<
"INFO:"
<<
currentmode
<<
" 指定输出las文件已存在,将覆盖原文件 "
<<
las_filepath
.
string
()
<<
std
::
endl
;
//return -1;
//return -1;
...
...
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