Skip to content

Update compress_depth_image_transport to ROS2#27

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

Update compress_depth_image_transport to ROS2#27
mjcarroll merged 5 commits intoros-perception:ros2-develfrom
j-rivero:ros2-devel-compress-depth

Conversation

@j-rivero
Copy link
Copy Markdown

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

Mostly a clone of #26. I think that the TODO applies here too:

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

Copy link
Copy Markdown
Contributor

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

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

Looks very similar to what I did, I just updated the logging macros.

{
ROS_ERROR("%s", e.what());
return sensor_msgs::Image::Ptr();
RCUTILS_LOG_ERROR(e.what());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I switched these to RCLCPP_ERROR per @mikaelarguedas suggestion.

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.

I did that for the code encapsulated in classes but I doubt about doing it in the codec file that contains helper functions. We can modify the interface to include a node shared ptr but looks a bit weird to me to do that for "decode" or "encode" functions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah, I'm still a little unclear on what the best practice is here, especially since logging requires passing either a Node or Logger around.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

On gazebo_ros_pkgs sometimes we create a logger on the fly, i.e.

auto logger = rclcpp::get_logger("compressed_depth_image_transport");

Maybe here it makes sense to have a static logger.

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.

Thanks @chapulina. I've changed the macros in 05bd4d5

@mjcarroll mjcarroll merged commit 47f95ee 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.

3 participants