Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [parameters]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Reading Global Parameters in ROS2

I am trying to have a global parameter node and a client program that reads the global parameter off of the global parameter node. I am using ROS2 Foxy. Here is the global parameter node with just one ...
Farbod's user avatar
  • 1
0 votes
1 answer
14 views

ROS2 integer parameter with range

i try create a integer parameter in ros2 which should have a range from 0 to 100. My final goal here is to manipulate this parameter with the rqt reconfigure window through a slider. But i dont find ...
Maverick_ROS's user avatar
0 votes
1 answer
84 views

Reading a vector of structs as parameters in ROS2

I would like to be able to read ROS2 parameters of the form: ...
CaptKrasno's user avatar
0 votes
1 answer
19 views

Parameter initialization error with PlanSys2 and BT's

I'm trying to implement PlanSys2 and Behavior trees. My package is heavily inspired by ros2_planning_system_examples plansys2_bt_example package. I want to simulate a warehouse robot with automatic ...
stinky's user avatar
  • 3
0 votes
2 answers
88 views

rclpy set parameters in global namespace?

As far as I know, it is not possible to set parameters in the '/' namespace from a ROS 2 node, unlike ROS 1. All the parameter set from the ROS 2 node falls in the <...
aarsht7's user avatar
  • 113
0 votes
2 answers
52 views

What is params of <sensor> in ros2_control use for?

I'm follow the example 4 in ros2_control_demos, and in file, there have following lines: ...
HieuHIenHoa's user avatar
0 votes
1 answer
43 views

How to set the value of a specific element of parameter array

Does anybody know how to set the value of a specific element of a parameter array without having to reset the whole array ? For instance modifying just the x linear max_velocity of the velocity ...
doisyg's user avatar
  • 3
0 votes
0 answers
36 views

How to modify the parameters of ROS 2 in real-time?

We know that parameters can be adjusted dynamically in ROS, for example, when using the TEB local planner, the parameters can be dynamically adjusted. In ROS 1, I did this: ...
user38253's user avatar
0 votes
2 answers
57 views

YAML-standard parameter specification not one of the allowed types

I'm having a problem regarding code migration from ROS Noetic to ROS Foxy. The problem is related to parameter access from scripts. I'm using Python nodes for my code. Originally these sorts of YAML ...
juxyper's user avatar
0 votes
1 answer
31 views

Launch_arguments doensn't work

I'm trying to run a LiDar driver from my robot bringup launch file, I ofcourse need to give the launch file arguments: hostname and frame id, when running this from CLI it works fine and when I'm ...
Coen H's user avatar
  • 21
0 votes
1 answer
46 views

How to declare parameter that are only known at runtime

I'm currently facing an issue with the ros2 parameters. I'm not sure how to approach this, from Iron on ros2_controller creates a node without the node options ...
saikishor's user avatar
0 votes
0 answers
46 views

urdf error. It have some including xacro files

I used the include xacro command to combine three urdf.xacro files into one, and only one xacro is loaded through XML conversion from 'robot_description' via ...
ertretff's user avatar
1 vote
1 answer
52 views

ROS2 default values ignored when including launch file in other launch

I am using ROS2 Humble and Ubuntu 22.04. My aim is to create one launch file which could run multiple launch files and nodes like nav2 and rtabmap and some others. The problem is that default ...
Marabir's user avatar
  • 26
0 votes
1 answer
75 views

rclcpp - float conversion warning when using `declare_parameter<float>`

Compiling a node with the following snippet and -Wfloat-conversion leads to the following: ...
Patrick Roncagliolo's user avatar
0 votes
1 answer
72 views

Is there a way to enumerate over predefined constants in ROS2 message definitions?

I'd like to know if there is a way to enumerate over the available constants defined in a message. As an example, let's take the visualization_msgs/Marker.msg as an ...
Steve's user avatar
  • 1
0 votes
1 answer
18 views

Getting parameters of the Parrot ANAFI Drone

I have a Parrot ANAFI Drone. And I want to get its parameters such as height, yaw, pitch, roll angles , velocity, status etc. But I do not know how to reach these parameters. I use olypme SDK on ...
Ahmed's user avatar
  • 1
0 votes
0 answers
28 views

Parrot ANAFI drone parameters

I have a project include the use of Parrot ANAFI drone, however I don't have the values of the inertial parameters such as the mass moment of inertia (I_x,I_y,I_z) only the mass is known. Can you ...
Baker Shehadeh's user avatar
1 vote
1 answer
489 views

How to get launch parameter (LaunchConfiguration) value in string?

I just want to have a log message with the parameter value, and I can't find how to. ...
SebL's user avatar
  • 51
0 votes
2 answers
190 views

How are ROS 2 parameters initialized once specified on the command line?

The ROS 2 Design document for the Parameter API, does not give a description of the details of ROS 2 parameter initialization after specifying them on the command line. Specifically, what happens &...
Adam Sperry's user avatar
0 votes
0 answers
115 views

[ROS2]can't load parameters from yaml file when migrating ros1 to ros2

I'm trying to migrate VINS-Mono(https://github.com/HKUST-Aerial-Robotics/VINS-Mono) to ROS2 version, and now there's a problem with reading parameters. I just modified the ROS1 code of reading ...
Muu's user avatar
  • 1
0 votes
1 answer
70 views

Loading 2 yaml's to same parameter namespace

I want to load 2 sets of parameters from 2 different yamls to the same namespace from a launch file, like this: YAML1: - id: foo1 waypoints: - type: foo1 ...
AndyZe's user avatar
  • 863
0 votes
1 answer
18 views

Parameters ROS2 convention: dots or slashes

Hi! I was wondering what the official or the conventional delimiter is for parameters in ROS2: dots like in namespace.param.subparam slashes like in namespace/param/subparam This test node in rclcpp ...
Kimberly McGuire's user avatar
0 votes
1 answer
155 views

How can I call a ros2 executable with arguments from a non-ROS file

Hello, I have two questions: I would like to create a ROS API to start ROS nodes from a non-ROS python script. For example the non-ROS python script: pick.py, would call the pick_ros.py to start a ...
user avatar
0 votes
1 answer
15 views

ROS2 python launch, how to forward launch arguments to xacro models

Hi I like to use LaunchArgument to process my xacro file, which contains my robot model for gazebo and the robot_description for my robot_state_publisher. ...
user avatar
0 votes
1 answer
212 views

[ROS2] Any idea on how to pass parameters (YAML) to a Xacro file via launch python script?

In my launch python script I can load and pass parameters from a .yaml file into my code without any problem: ...
user avatar
0 votes
1 answer
18 views

Is it possible to load the parameters file while running?

Is it possible to load a parameter yaml file during runtime? I have multiple parameter files that I would like to switch parameter file while running. For example, I have setting1.yaml setting2.yaml ...
user avatar
0 votes
2 answers
62 views

turtlebot3 navigation parameters

I want to change a turtlebot3 navigation parameter called "inflation radius", I don't know how to actually go into the required yaml file to do so. I'm just confused. A book on programming ...
user avatar
0 votes
1 answer
26 views

How is the name field of ParameterDescriptor used by declare_parameter?

The first parameter you pass into every version of declare_parameter is the name of the parameter. If you also specify a name value in the ...
user avatar
0 votes
1 answer
229 views

[ros2] Launch file arguments, subsititutions, xacro and node parameters

Hi all, I am having a "fight" with launch-file argument in ROS2 for a few days already. The scenario is the following: Set parameter when calling launch file. Use it as argument for xacro ...
Dr. Denis's user avatar
  • 588
0 votes
2 answers
95 views

share params between nodes ROS2

In ROS1 there you can read params from node namespace (prefixing param name with "~") and global namespace (prefixing param name with "/") If understand the tutorials https://index....
user avatar
0 votes
1 answer
129 views

[ROS2] using dynamic parameters in Python

I want to use dynamic parameters in my ROS2 code. I defined a callback function, if a parameter is changed with following line: ...
user avatar
0 votes
1 answer
115 views

ROS 2 Params YAML File Package-Relative Path

Is there currently any analog to the rosparam flag subst_value for ROS 2 YAML parameter files? I would like to use a package-...
user avatar
0 votes
1 answer
231 views

ROS2 add parameter to c++ and launch file

So I'm a novice when it comes to ROS2, but have some experience with ROS1. I've been trying to convert an existing project from ROS kinetic to ROS eloquent. In this project I've made a node in c++ ...
user avatar
0 votes
1 answer
2 views

Generic robot parameter loading for multiple robots

I currently have a package which subscribes to multiple robots. I wish to use a more generic solution where I use bind to generate the callback for each robot listed in the .yaml file. Example how I ...
user avatar
0 votes
2 answers
181 views

Set parameters in ROS2 using a yaml file without needing to build the package every time

I have been able to include a parameter.yaml file in my test.launch.py file. However if I modify the parameter.yaml file, I need to build the entire package again before seeing changes reflected when ...
user avatar
0 votes
1 answer
6 views

Is it correct to set topic names from parameters?

This is a mix of a practical question and an academic question. When, if ever, is it correct to set topic names from parameters? If it is, how do you handle aspects such as the default topic name and ...
Geoff's user avatar
  • 1,843
0 votes
1 answer
131 views

How to get ROS2 parameter hosted by another Node

Hello, I have been looking through the documentation and can not find any means to get or set parameters of other nodes than the one that has declared the parameters. Is this by design or is there a ...
user avatar
0 votes
1 answer
1 view

ROS Answers SE migration: ros2 turtlesim

Hi guys, I am using ros2 dashing and work with turtlesim (1.0.1). Unfortunatly, I realized that a number of features described in the tutorial do not work for me. Action Servers explained in ...
user avatar
0 votes
1 answer
7 views

launch file parameters that have curly braces

I am using ROS Melodic. How can I set a parameter in a launch file that resembles a yaml syntax like this: ...
user avatar
0 votes
1 answer
80 views

param robot_description not found by searchParam()

I am running ROS Melodic and I'm trying to create a launch file to run multiple Turtlebot3 that share a map. I have created a one_robot.launch file that launches a ...
user avatar
0 votes
1 answer
30 views

[ROS2] I can publish a parameter with wrong type and get no exception

Hi guys, is this expected behavior, that when I publish a parameter with a wrong datatype, the result is always true? ros2 param set /test/my_double_value 1 ...
user avatar
0 votes
1 answer
18 views

Params appear broken in ROS2?

According to https://index.ros.org/doc/ros2/Tutorials/Node-arguments/#parameters, if I have a properly formatted parameters yaml file, and I call ros2 run with <...
user avatar
0 votes
1 answer
42 views

ros2 rclpy list parameters from node

Is there an easy way to list parameters from an rclpy Node ?? I can 'manually' set up a service client and do the list_parameters call but it feels like this should ...
user avatar
0 votes
1 answer
15 views

Passing Matrices as params in Launch Files

I'd like to pass the data contained within a matrix as a parameter to several nodes in a launch file. This link states how to pass in std::vector<...> params ...
user avatar
0 votes
1 answer
6 views

rosnodejs get private param

I've written a ROS node using rosnodejs, and I would like to pass it a privately scoped parameter on the command line like: rosrun mynode myscript.js _myparam:=foo What would be as simple as rospy....
user avatar
0 votes
1 answer
318 views

Converting dynamic reconfigure to ros2 parameters

This isn't a very clear question, mostly just a dump of my current understanding of how to use ros2 parameters and hopefully any misconceptions can be addressed in comments or answers. I have many ...
Lucas Walter's user avatar
  • 3,347
0 votes
2 answers
102 views

Check if ROS2 Parameters Exist with RCLCPP

In ROS1 there was the hasParam method. In ROS2, there doesn't seem to be a way to check if a parameter exists directly without attempting to get the value of the parameter. A) Is there a way to check ...
DLu's user avatar
  • 4,294
0 votes
2 answers
78 views

Access parameters set from another node

Hi, I'm using ROS2 Bouncy. I have two nodes. What I would like to do is to allow the first node to set some parameters on the parameters server and then make the second node to retrieve these ...
user avatar
0 votes
1 answer
41 views

ROS 2 Bouncy get_parameter

Hi, I'm using ROS 2 Bouncy and I'm trying to get parameters from a yaml file. I checked a few ways to get parameters and I found one that works but takes 3 lines for each parameter : ...
user avatar
0 votes
1 answer
76 views

[ROS2 YAML] Config file without node name

Is it possible to write a YAML parameter file without specifying the ROS2 node name? The current format for a YAML file is the following: ...
Myzhar's user avatar
  • 198