Skip to content

Commit

Permalink
ported pcl2_to_scan conversion node
Browse files Browse the repository at this point in the history
  • Loading branch information
amock committed May 2, 2024
1 parent b3e76b5 commit 94db829
Show file tree
Hide file tree
Showing 4 changed files with 276 additions and 212 deletions.
108 changes: 67 additions & 41 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -403,52 +403,76 @@ install(TARGETS
# ########################
# ### CONVERSION NODES ###
# ########################
# if(BUILD_CONV)
if(BUILD_CONV)

# ####### PCL2 to SCAN CONVERTER
# add_executable(conv_pcl2_to_scan src/nodes/conv/pcl2_to_scan.cpp)
####### PCL2 to SCAN CONVERTER
add_library(conv_pcl2_to_scan SHARED
src/nodes/conv/pcl2_to_scan.cpp)

# add_dependencies(conv_pcl2_to_scan
# ${${PROJECT_NAME}_EXPORTED_TARGETS}
# ${catkin_EXPORTED_TARGETS}
# )

# ## Specify libraries to link a library or executable target against
# target_link_libraries(conv_pcl2_to_scan
# ${catkin_LIBRARIES}
# rmcl_ros
# )

# ####### PCL2 to DEPTH CONVERTER
# add_executable(conv_pcl2_to_depth src/nodes/conv/pcl2_to_depth.cpp)

# add_dependencies(conv_pcl2_to_depth
# ${${PROJECT_NAME}_EXPORTED_TARGETS}
# ${catkin_EXPORTED_TARGETS}
# )

# ## Specify libraries to link a library or executable target against
# target_link_libraries(conv_pcl2_to_depth
# ${catkin_LIBRARIES}
# ${rmagine_ext_LIBRARIES}
# rmcl_ros
# )

# ####### IMAGE to DEPTH CONVERTER
# add_executable(conv_image_to_depth src/nodes/conv/image_to_depth.cpp)
## Specify libraries to link a library or executable target against
target_link_libraries(conv_pcl2_to_scan
rmcl_ros
)

# add_dependencies(conv_image_to_depth
# ${${PROJECT_NAME}_EXPORTED_TARGETS}
# ${catkin_EXPORTED_TARGETS}
# )
ament_target_dependencies(conv_pcl2_to_scan
rclcpp
rclcpp_components
geometry_msgs
sensor_msgs
tf2
tf2_ros
rmcl_msgs
image_transport
visualization_msgs
)

# ## Specify libraries to link a library or executable target against
# target_link_libraries(conv_image_to_depth
# ${catkin_LIBRARIES}
# rmcl_ros
# )
rclcpp_components_register_node(conv_pcl2_to_scan PLUGIN "rmcl::Pcl2ToScanNode" EXECUTABLE conv_pcl2_to_scan_node)

# endif(BUILD_CONV)
install(TARGETS
conv_pcl2_to_scan
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)

####### PCL2 to DEPTH CONVERTER
# add_executable(conv_pcl2_to_depth src/nodes/conv/pcl2_to_depth.cpp)

## Specify libraries to link a library or executable target against
# target_link_libraries(conv_pcl2_to_depth
# rmagine::core
# rmcl_ros
# )

# ament_target_dependencies(conv_pcl2_to_depth
# rclcpp
# geometry_msgs
# sensor_msgs
# tf2_ros
# rmcl_msgs
# image_transport
# visualization_msgs
# )

# install(TARGETS
# conv_pcl2_to_depth
# DESTINATION lib/${PROJECT_NAME})

####### IMAGE to DEPTH CONVERTER
# add_executable(conv_image_to_depth src/nodes/conv/image_to_depth.cpp)

# add_dependencies(conv_image_to_depth
# ${${PROJECT_NAME}_EXPORTED_TARGETS}
# ${catkin_EXPORTED_TARGETS}
# )

# ## Specify libraries to link a library or executable target against
# target_link_libraries(conv_image_to_depth
# ${catkin_LIBRARIES}
# rmcl_ros
# )

endif(BUILD_CONV)

# ################
# ### EXAMPLES ###
Expand Down Expand Up @@ -492,8 +516,10 @@ ament_export_libraries(
)

ament_export_dependencies(rclcpp
rclcpp_components
geometry_msgs
sensor_msgs
tf2
tf2_ros
rmcl_msgs
image_transport
Expand Down
2 changes: 1 addition & 1 deletion include/rmcl/util/conversions.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@


#include <sensor_msgs/msg/point_cloud.hpp>
#include <sensor_msgs/msg/point_cloud.hpp>
#include <sensor_msgs/msg/point_cloud2.hpp>
#include <sensor_msgs/msg/laser_scan.hpp>
#include <sensor_msgs/msg/camera_info.hpp>
#include <sensor_msgs/msg/laser_scan.hpp>
Expand Down
Loading

0 comments on commit 94db829

Please sign in to comment.