Skip to content

rclcpp: Document value = declare_parameter Parameter pattern for basic parameter usage #6305

@emersonknapp

Description

@emersonknapp

Issue Type

  • 🐛 Bug / Problem
  • ✏️ Typo / Grammar
  • 📖 Outdated Content
  • 🚀 Enhancement

Generated by Generative AI

No response

Distribution

all

Description

The very first usage most people see in https://docs.ros.org/en/rolling/Tutorials/Beginner-Client-Libraries/Using-Parameters-In-A-Class-CPP.html
is really complicated and verbose.

Most nodes, most of the time, get their read-only params up front a single time, and there is a much better syntax for that than is suggested in the introductory materials

auto param_value = declare_parameter(...);

Affected Pages/Sections

No response

Screenshots or Examples (if applicable)

No response

Suggested Fix

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions