File tree 2 files changed +2
-19
lines changed 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ find_package(OpenCV REQUIRED)
27
27
28
28
catkin_package(
29
29
INCLUDE_DIRS include
30
- # LIBRARIES pytorch_enet_ros
31
30
CATKIN_DEPENDS roscpp rospy std_msgs
32
- # DEPENDS system_lib
33
31
)
34
32
35
33
###########
@@ -46,7 +44,6 @@ include_directories(
46
44
47
45
## Declare a C++ library
48
46
add_library (${PROJECT_NAME}
49
- src/pytorch_enet_ros.cpp
50
47
src/pytorch_seg_trav_path_ros.cpp
51
48
src/pytorch_cpp_wrapper_seg_trav.cpp
52
49
src/pytorch_cpp_wrapper_seg_trav_path.cpp
@@ -64,16 +61,9 @@ set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 14)
64
61
## Declare a C++ executable
65
62
## With catkin_make all packages are built within a single CMake context
66
63
## The recommended prefix ensures that target names across packages don't collide
67
- add_executable (${PROJECT_NAME} _node src/pytorch_enet_ros_node.cpp)
68
64
add_executable (pytorch_seg_trav_path_node src/pytorch_seg_trav_path_node.cpp)
69
65
70
66
## Specify libraries to link a library or executable target against
71
- target_link_libraries (${PROJECT_NAME} _node
72
- ${catkin_LIBRARIES}
73
- ${PROJECT_NAME}
74
- ${TORCH_LIBRARIES}
75
- )
76
-
77
67
target_link_libraries (pytorch_seg_trav_path_node
78
68
${catkin_LIBRARIES}
79
69
${PROJECT_NAME}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<launch >
3
3
<arg name =" image" default =" /camera/rgb/image_rect_color" />
4
+ <arg name =" model_name" default =" $(find pytorch_ros)/models/espdnet_ue_trav_path_20210518-221714.pt" />
4
5
5
6
<node pkg =" pytorch_ros" type =" pytorch_seg_trav_path_node" name =" pytorch_seg_trav_path_node" output =" screen" >
6
- <!--
7
- <remap from="~image" to="/kinect2/qhd/image_color_rect" />
8
- <param name="model_file" value="$(find pytorch_ros)/models/ENet_camvid.pt" />
9
- <param name="colormap" value="$(find pytorch_ros)/images/camvid12.png" />
10
- -->
11
7
<remap from =" ~image" to =" $(arg image)" />
12
- <param name =" model_file" value =" $(find pytorch_ros)/models/espdnet_ue_trav_path_20210518-221714.pt" />
13
- <!--
14
- <param name="model_file" value="$(find pytorch_ros)/models/ENet_greenhouse.pt" />
15
- -->
8
+ <param name =" model_file" value =" $(arg model_name)" />
16
9
<param name =" colormap" value =" $(find pytorch_ros)/images/greenhouse4.png" />
17
10
<param name =" model_name" value =" greenhouse" />
18
11
</node >
You can’t perform that action at this time.
0 commit comments