Skip to content

Update theora_image_transport to ROS2 #28

Merged
mjcarroll merged 5 commits intoros-perception:ros2-develfrom
j-rivero:ros2-devel-compress-depth-theora-pr
Aug 28, 2018
Merged

Update theora_image_transport to ROS2 #28
mjcarroll merged 5 commits intoros-perception:ros2-develfrom
j-rivero:ros2-devel-compress-depth-theora-pr

Conversation

@j-rivero
Copy link
Copy Markdown

@j-rivero j-rivero commented Aug 16, 2018

TODO:

  • Use ros2 parameters to set encoding
  • Use parameter events to replace dynamic reconfigure.

@j-rivero j-rivero changed the title Update theora_image_transport to ROS2 #27 Update theora_image_transport to ROS2 Aug 16, 2018
Copy link
Copy Markdown
Contributor

@tfoote tfoote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A read through looks good to me. We should just make sure we've got validated CI.

Copy link
Copy Markdown

@mikaelarguedas mikaelarguedas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quick review of the CMake code, didnt review the actual code change

find_package(sensor_msgs REQUIRED)
find_package(std_msgs REQUIRED)

find_package(OpenCV REQUIRED)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like only the imgproc module from OpenCV is used. We should use that instead to avoid including / linking all OpenCV

install(TARGETS ${LIBRARY_NAME}
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This target is installed L109 so this block can be removed

${PC_THEORADEC_LIBRARIES}
install(
DIRECTORY "include/"
DESTINATION include
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This directory is installed L115 so this install statement can be removed


ament_export_dependencies(rosidl_default_runtime)

install(TARGETS ${LIBRARY_NAME} ogg_saver
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if ogg_saver is an executable that we expect to run using ros2 run, we should install it in to lib/${PROJECT_NAME}

ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
ament_target_dependencies(ogg_saver
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this target requires rcutils headers. so we should add a dependency and include / link against it as well

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done e20b578

rosidl_target_interfaces(ogg_saver
${PROJECT_NAME} "rosidl_typesupport_cpp")

ament_export_dependencies(rosidl_default_runtime)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the only library needed by consuming packages?

DESTINATION include
)

pluginlib_export_plugin_description_file(image_transport theora_plugins.xml)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please update this plugin file to remove any os specific library prefix or suffix:
e.g. libtheora_image_transport -> theora_image_transport

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed in e20b578, not sure if I need to change it in other places.

@mjcarroll mjcarroll merged commit ebfe575 into ros-perception:ros2-devel Aug 28, 2018
mjcarroll pushed a commit that referenced this pull request Aug 28, 2018
* Ignore other packages for now.

* Update to new plugin API.

* Add support for parameters.

* Address reviewer feedback.

* Switch to RCLCPP loggers.

* Update compress_depth_image_transport to ROS2 (#27)

* Port compress_depth_image_transport to ROS2

* Specifiers final for methods

* Use rcutils logging

* Implement parameters for encoding

* Use RCLCPP_* macros instead of rcutils

* Update theora_image_transport to ROS2  (#28)

* Port theora plugin to ROS2

* Implement network options from ROS1 into rmw_qos_profile_t

* Improve comment to clarify the use of dynamic reconfigure in ROS1

* Use RCLCPP logging instead of RCUTILS

* Addressed reviewer comments
@dirk-thomas dirk-thomas mentioned this pull request Sep 4, 2018
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants