You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow Parameter API to get/set maps of values #529
... to reduce the amount of boilerplate that users would have to do to get parameters one at a time.
I am not sure what you mean with "one at a time".
Couldn't you create a "syntactic sugar" API which wraps the existing get_parameters method and instead of returning a std::vector<rclcpp::Parameter> return a std::map<std::string, rclcpp::ParameterValue>?
Couldn't you create a "syntactic sugar" API which wraps the existing get_parameters method and instead of returning a std::vectorrclcpp::Parameter return a std::map<std::string, rclcpp::ParameterValue>?
From talking with @clalancette about this a get_parameters overload which can return a map or fill a provided one would be a good enhancement, although not needed for the work on teleop_twist_joy.
Another method that would be useful (but again isn't necessary for teleop_twist_joy) is one which can get an entire prefix. An example would be something like std::map<std::string, rclcpp::ParameterValue> get_parameters_by_prefix(std::string prefix); Given the parameters in our example on the wiki this method would be used to get a map of all parameters under the prefix some_lists
Activity
mikaelarguedas commentedon Aug 6, 2018
Permalink: https://github.com/ros-teleop/teleop_twist_joy/blob/10d79bebbf112f95f32713895f7cd0668faa83fc/src/teleop_twist_joy.cpp#L78
dirk-thomas commentedon Aug 6, 2018
I am not sure what you mean with "one at a time".
Couldn't you create a "syntactic sugar" API which wraps the existing get_parameters method and instead of returning a
std::vector<rclcpp::Parameter>return astd::map<std::string, rclcpp::ParameterValue>?nuclearsandwich commentedon Sep 7, 2018
From talking with @clalancette about this a get_parameters overload which can return a map or fill a provided one would be a good enhancement, although not needed for the work on teleop_twist_joy.
Another method that would be useful (but again isn't necessary for teleop_twist_joy) is one which can get an entire prefix. An example would be something like
std::map<std::string, rclcpp::ParameterValue> get_parameters_by_prefix(std::string prefix);Given the parameters in our example on the wiki this method would be used to get a map of all parameters under the prefixsome_listsclalancette commentedon Jan 17, 2019
Fixed by merging #575 , so closing this.
Specify test working directory (ros2#529)
Fix rosbag2_py bug when using libc++ (ros2#529)