Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfx_node_ros
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
oscar
jfx_node_ros
Commits
9766af35
Commit
9766af35
authored
Aug 25, 2023
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改读取nuScenes数据集逻辑
parent
fd241b6c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
CMakeLists.txt
CMakeLists.txt
+1
-0
jfx_node_ros.launch
launch/jfx_node_ros.launch
+8
-2
main.cpp
src/main.cpp
+16
-0
No files found.
CMakeLists.txt
View file @
9766af35
...
...
@@ -72,6 +72,7 @@ include_directories(
add_executable
(
${
PROJECT_NAME
}
${
PROJECT_SOURCE_DIR
}
/src/main.cpp
${
PROJECT_SOURCE_DIR
}
/src/SendRosMsg.cpp
${
PROJECT_SOURCE_DIR
}
/src/NuScenesRosMsg.cpp
)
target_link_libraries
(
${
PROJECT_NAME
}
${
OpenCV_LIBS
}
)
...
...
launch/jfx_node_ros.launch
View file @
9766af35
<launch>
<arg name="parampath" default="$(find jfx_node_ros)/config/params.yaml"/>
<arg name="run_mode" default="
1
"/>
<arg name="run_mode" default="
3
"/>
<arg name="originDataPath" default="/media/sf_originData/data"/>
<arg name="gps_load_file" default="/media/sf_originData/102022041610.nav/102022041610_traj.txt"/>
<arg name="outPutSaveDir" default="/media/sf_originData/detect_data/"/>
...
...
@@ -18,7 +18,10 @@
<arg name="play_save_pcd_folder" default="/media/sf_originData/save_data/60_90_csv31_1650064407084/pcd"/>
<arg name="play_save_image0_folder" default="/media/sf_originData/save_data/60_90_csv31_1650064407084/image0"/>
<arg name="play_save_image1_folder" default="/media/sf_originData/save_data/60_90_csv31_1650064407084/image1"/>
<node pkg="jfx_node_ros" type="jfx_node_ros" name="jfx_node_ros" output="screen" >
<arg name="nuScenes_json_dir" default="/media/sf_shared/nuScenes"/>
<arg name="scene_name" default="scene-1100"/>
<arg name="nuScenes_save_dir" default="/media/sf_shared/nuScenes/output"/>
<node pkg="jfx_node_ros" type="jfx_node_ros" name="jfx_node_ros" output="screen" launch-prefix="gdb -ex run --args">
<param name="parampath" value="$(arg parampath)" />
<param name="run_mode" value="$(arg run_mode)" />
<param name="originDataPath" value="$(arg originDataPath)" />
...
...
@@ -38,5 +41,8 @@
<param name="play_save_pcd_folder" value="$(arg play_save_pcd_folder)" />
<param name="play_save_image0_folder" value="$(arg play_save_image0_folder)" />
<param name="play_save_image1_folder" value="$(arg play_save_image1_folder)" />
<param name="nuScenes_json_dir" value="$(arg nuScenes_json_dir)" />
<param name="scene_name" value="$(arg scene_name)" />
<param name="nuScenes_save_dir" value="$(arg nuScenes_save_dir)" />
</node>
</launch>
src/main.cpp
View file @
9766af35
...
...
@@ -12,6 +12,8 @@
#include <fstream>
#include <sstream>
#include "SendRosMsg.hpp"
#include "nlohmann_json/json.hpp"
#include "NuScenesRosMsg.hpp"
struct
FileInfo
{
...
...
@@ -216,7 +218,21 @@ int main(int argc, char** argv) {
printf
(
"finish error ret = %d"
,
ret
);
ros
::
spin
();
}
else
if
(
run_mode
==
3
)
{
NuScenesRosMsg
nuScenesMsg
=
{};
nuScenesMsg
.
Play
(
phpriv_nh
);
ros
::
spin
();
}
else
if
(
run_mode
==
4
)
{
NuScenesRosMsg
nuScenesMsg
=
{};
nuScenesMsg
.
SaveGT
(
phpriv_nh
);
ros
::
spin
();
}
return
0
;
}
...
...
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