ros2 / ros2/rclcpp

Adding rmw_request_id_t allocator

Open
#2,328 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
805
Forks
564
Avg merge
1d 17h
Merged PRs (30d)
27

Description

Feature request

Should rmw_request_id_t's allocator be used in the create_request_header method

Feature description

Added in this commit, there is a TODO within the method create_request_header that wants to utilize rmw_request_id_t with a custom allocator of some sort.

Implementation considerations

This TODO is roughly 8.5 years old, a lot has changed since then especially with rmw, so if this isn't necessary I can just open a PR that removes the TODO. Otherwise, since rmw_request_id_t doesn't have an allocator inside of the class, should this method be using some from of allocator in rclc since it is a C type, in order to efficiently create new request headers?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading create_request_header in rclcpp/include/rclcpp/client.hpp and the rmw_request_id_t definition in rmw/include/rmw/types.h. Determine whether the allocator TODO is still required with current rmw behavior; done means either implementing the appropriate allocator handling or removing the obsolete TODO, with corresponding validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
robotics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.