3
votes
Accepted
Reading a vector of structs as parameters in ROS2
Im working on the same problem and have found a workaround that lets you get parameters from a yaml file like you would in ROS1 without forward declaring them as is the default in ROS2.
You need to ...
2
votes
Is there a way to enumerate over predefined constants in ROS2 message definitions?
Unfortunately I don't think it is possible to do this automatically given the way the IDL is defined. You'll notice in the marker message there are actually two sets of constants (one for markers, one ...
1
vote
Specifying parameter type in ROS2 XML launch file
Can you update your launch file like this? I think there is a problem on your XML file.
...
1
vote
Accepted
ROS2 integer parameter with range
The integer_range member variable is a list (or vector) of rcl_interfaces::msg::IntegerRange.
Usually we have only one range for ...
1
vote
Accepted
Parameter initialization error with PlanSys2 and BT's
Here the PlanSys2 author :)
I think this was a bug, but now it is fixed, as far as I remember. The node name didn't match the node name in the params file.
I hope it helps
1
vote
How to set the value of a specific element of parameter array
I do not believe so, they're taken in whole. Perhaps an option would be to use the parameter client to get the current parameter setting, then take that structure, make your change, and submit the ...
1
vote
Launch_arguments doensn't work
I think the question is similar to this, you have to declare the launch arguments before to pass it to the launch file.
1
vote
ROS2 default values ignored when including launch file in other launch
With ROS 2, launch configurations are not scoped anymore by default. That leads to launch arguments from one included file leak into other included launch files.
To stop this, you need to wrap the ...
1
vote
Accepted
rclcpp - float conversion warning when using `declare_parameter<float>`
All floating point Parameters end up being doubles under the hood - so your "declare_parameter" is basically being recast as "declare_parameter" - and then the implicit conversion ...
1
vote
Accepted
How to get launch parameter (LaunchConfiguration) value in string?
To my knowledge the only way to get the LaunchConfiguration parameter value at runtime (not the default parameter value) is to use ...
1
vote
Accepted
How to get ROS2 parameter hosted by another Node
In ROS 2 parameters are available via service interfaces:
...
1
vote
Check if ROS2 Parameters Exist with RCLCPP
For future questions I would like to add that onwards from dashing there exists function has_parameter() within rclcpp::Node for ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
parameters × 120ros × 81
ros2 × 43
navigation × 15
yaml × 13
roslaunch × 9
c++ × 7
dynamic-reconfigure × 7
ros-kinetic × 6
rosparam × 6
ros-melodic × 5
rclcpp × 5
ros-humble × 4
parameter × 4
urdf × 3
moveit × 3
rclpy × 3
xacro × 3
rosjava × 3
base-local-planner × 3
services × 3
parameter-server × 3
launch-file × 3
ros-bouncy × 3
slam × 2