Questions tagged [parameter]

The tag has no usage guidance.

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

ROS2 most appropiate way for central data storage

I am currently working on a ROS2 project that includes various components, such as a behavior tree, sensor processing, and a GUI. I'm in need of a central data storage solution where each component ...
guerteltier's user avatar
0 votes
0 answers
37 views

ros2 nav2 waypoint error - foxy

I'm using Nav2 on ROS2 foxy. After mapping, whever I set goal_pose nav2 makes correct waypoint. But near the corner, the waypoint is suddenly changed too close to move. So that every time the robot ...
ybbaek's user avatar
  • 1
0 votes
0 answers
32 views

#Win10/Iron Cannot get message of "INFO custom_minimal_param_node: Hello earth!" after using the launch file

guys! I am learning about 《Using parameters in a class (Python) — ROS 2 Documentation: Iron documentation》. For the section of [3.2 Change via a launch file], after running the ...
Eric's user avatar
  • 1
0 votes
1 answer
74 views

parameter management in ROS2

Hi all, I want to pass a bunch of parameters to certain C++ class which is indirectly called in a ros2 node: Some parameters can be modified in runtime via HMI or other ways? Since ros2 can only load ...
user avatar
0 votes
1 answer
65 views

ROS2 python launch: Using argument to create file name for a launch_argument

Hi! I like to launch gazebo with different environments (world files). But I only want to give as argument the world file name and not the full path. The full path should be created by launch file. ...
user avatar
0 votes
1 answer
6 views

set parameter when remapped (launch file)

I remapped the node name through launch file, also I set a parameter inside launch file. What happened is, the parameter is set on the original name of the node. Heres my launch file: ...
user avatar
0 votes
1 answer
32 views

Xacro Macro Param Not defined

I have a xacro file that has some generic macros for inertia. Currently using this for Noetic but I used the exact file on a previous project in Melodic. The error I get is: name 'm' is not defined ...
user avatar
0 votes
1 answer
13 views

ros2 launch - how to send a ROS msg type as parameter

Hello, I am working on a ROS msgs recorder and I am not sure how should I set up a launch parameter with given ROS message type. I tried with something like: ...
ljaniec's user avatar
  • 1,553
0 votes
1 answer
5 views

Why ROS2 rclc_parameter_set_int() has value parameter as int64_t while rclc_parameter_get_int() has the same parameter as int type?

Hello guys, I just dealt with these two functions while I was learning how to implement a Parameter Server with Micro-ROS and ROS2 Galactic. I confess it bugged my mind, so we are talking about the ...
user avatar
0 votes
1 answer
34 views

Overwriting a parameter in config file during runtime

Hi, I'm writing a node that reads a parameter from a config file (.yaml) to set the initial value of a variable (using ros::param::get). During runtime this variable is constantly updated. Before ...
user avatar
0 votes
1 answer
5 views

Do getParamCached() and dynamic_reconfigure have the same functions?

I want to reflect the changes in the parameters, in my node during run-time. In such a situation, which would be better to implement: getParamCached() or the dynamic_reconfigure package? I know that ...
user avatar
0 votes
1 answer
125 views

ROS2 parameter in launch file with node namespace

From the following answer by @dhood it says that since Crystal modifications for the nodes name/namespace in launch files will also be taken into account for the parameter YAML file: https://answers....
befaro's user avatar
  • 32
0 votes
1 answer
13 views

How to get the arguments or parameters of launch file in node file?

Hello, I'm using ROS melodic of Ubuntu 18.04. I'm trying to spawn 4 different robots and get their pose every time in the Gazebo simulation. I had gotten /odom ...
user avatar
0 votes
1 answer
4 views

has_parameter() in callback throws exception

I am not sure how this is supposed to be done: I have a parameter client and the node which is passed to the client spins ... ...
user avatar
0 votes
1 answer
4 views

[ROS2] How to check for incoming param type?

If I receive a parameter update and want to check if its the correct type, how could I do this? Because if I set a param over cmd line and write 1 instead of 1.0, no exception is thrown when receiving ...
user avatar
0 votes
1 answer
14 views

Does 'ros2 set param' exist?

If not, is there a way to declare a global parameter for all nodes? Originally posted by ahtsan on ROS Answers with karma: 112 on 2019-06-20 Post score: 0
user avatar
0 votes
2 answers
61 views

declare nested parameter

How do I declare nested variables or lists of key value pairs in ROS2 dashing? E.g for a yaml structure like tag_lists: base: 9 object: 14 ...
Christian Rauch's user avatar
0 votes
1 answer
33 views

ROS 2 Crystal : Can't get parameter list of string from YAML file

Hi, I'm using ROS 2 Crystal and I'm trying to get a list of string from a YAML file in Python. The problem is that my list also contains numbers, I don't mind them being converted into strings so my ...
user avatar
0 votes
1 answer
15 views

ROS2 Dashing overwrite default param via yaml

Hi, I would like to understand how to use the new parameters API that will be introduced with ROS2 Dashing. I read some links but it's still not clear. https://index.ros.org/doc/ros2/Tutorials/Node-...
user avatar
0 votes
1 answer
4 views

Parameter server gives odd values if read from my C++ code

Hello everyone, I have an issue with my parameters, when I launched my launch file where I load the yaml file, I can see that parameters from the yaml file are being loaded to the parameter server. ...
user avatar
0 votes
1 answer
4 views

Yaml file loaded in the parameter server but disappears after

Hello everyone, I have an issue with my parameters, when I launched my launch file where I load the yaml file, I can see that parameters from the yaml file are being loaded to the parameter server, ...
user avatar
0 votes
1 answer
29 views

Min and max value with ROS2 Parameter

Hi Everyone, The dynamic reconfigure is not available in ROS2, and its replacement Parameter feature is used. With ROS, .cfg files are used, where parameter's value, min , max and other details can be ...
user avatar
0 votes
1 answer
17 views

ros2 parameter server

Hello community, currently I'm trying to use ros2 crystal. Now my question: How is the feature of roscore and parameter server solved in ros2 ? e.g. load urdf and verify model with rviz2 Thanks for ...
user avatar
0 votes
1 answer
20 views

Rospy Parameter KeyError

I cannot get my code to get the parameters on my config file. I just do like it is on the tutorials but it does not work and I do not understand why. I believe it might be a namespace problem with ...
user avatar
0 votes
1 answer
6 views

parameter explain from move_base

HI, can someone explain to me what it is oscillation_timeout parameter from move_base? I can't found info of it. Originally posted by Diego_Perez on ROS Answers with karma: 28 on 2018-08-06 Post ...
user avatar
0 votes
2 answers
2 views

How to get string from terminal when starting the node. C++

Hello everyone, I'm trying to get a parameter used in the launch command of a node and use it on my c++ code. For example, when you're about to launch a node: $rosrun [packet] [node] [string], the [...
user avatar
0 votes
2 answers
44 views

How to get an array of parameters with rclcpp

In ROS1, you could retrieve a list of parameters The documentation shows get_parameter returning an ParameterVariant but ParameterVariant doesn't seem to have an ...
DLu's user avatar
  • 4,294
0 votes
1 answer
8 views

private params in launch file

Hi From what understand about launch file, <param> defined in <node> are private to that ...
user avatar
0 votes
1 answer
100 views

Pass parameters to xacro from launch file, or otherwise

Is there an example anywhere of how to actually pass a value from a launch file to the xacro files? I found a number of things here and there, but nothing clear as to what you need to do in the launch ...
user avatar
0 votes
1 answer
7 views

Bug in ros::NodeHandle::searchParam()?

Hi all, according to my understanding of searchParam(), the second if condition in the following code snippet should never be ...
user avatar
0 votes
1 answer
1 view

Probleme with parameter queue_size in image_proc node

Hello everyone, I try to change the size of the message queue in image_proc by raising the parameter ~queue_size in a roslaunch file: ...
user avatar
0 votes
1 answer
4 views

Get param from a parrallel namespace

I try to figure out the best way to get param from a parallel namespace in my node code. Here is my use case : I have a parameter b in namespace /a/ A node launch in namespace /c/d/ where I try to ...
user avatar
0 votes
1 answer
8 views

Where to store calibration data?

I have a list of integers, returned from my IMU, that represent calibration settings. I need to load these into the IMU on every power-up. Since the settings are unique to my IMU, I don't want to ...
user avatar
0 votes
1 answer
1 view

How to ask to ros the service parameter data type

I am learning ROS from the Wiki site and doing some commandos on the terminal to improve my understanding about it: I would like to know what are the parameters of a Rosservice, I am doing something ...
user avatar
0 votes
1 answer
3 views

Can rosserial set parameters?

The rosserial parameter documentation shows getting parameters from the parameter server, but not setting parameters. Is there a way to set parameters from rosserial? I'm guessing not, since the ...
user avatar
0 votes
1 answer
5 views

dyn_recfg c++: compiling but no items in rqt_reconfigure

HI, I try to get the dynamic reconfigure to run in c++. My Project is compiling without problems, but the variables do not appear in rqt? I have a class based structure like following: //Class ...
user avatar
0 votes
1 answer
1 view

ros::param::getCached will not update and gives errors

Can't seem to make full use of ros::param::getCached....while I CAN retrieve a value that is set on rosmaster, I get this error continuously: ...
user avatar
0 votes
1 answer
1 view

May I run Parameter Server separated?

Hi everybody: Does there any way to separate Parameter Server from roscore, and run alone! Originally posted by Damo on ROS Answers with karma: 7 on 2016-10-14 Post score: 0 Original comments ...
user avatar
0 votes
1 answer
2 views

roscpp relative vs global parameter (tutorial)

Hello, I thought I understood the concept of global and relative. But apparently while doing the tutorial ...
user avatar
0 votes
1 answer
3 views

parameter communication by using launch file

I'd like to use parameter communication by using launch file. First, I make the following node. ...
user avatar
0 votes
1 answer
4 views

Running ROS node with a numeric parameter passed as string doesn't work

I am trying to run the IAI Kinect2 Bridge node as follows, in order to use multiple sensors: $ kinect2_bridge _sensor:=1234567890 But the node does not recognize the provided sensor ID and falls back ...
user avatar
0 votes
1 answer
2 views

PID controller /pid_enable topic for multiple controllers

Hi all, I am using the PID package to run six pid controllers (So far) on a robot. I'm using the parameters in the launch file to differentiate between the different PID nodes, as described in the ...
user avatar
0 votes
1 answer
1 view

reading parameter in c

Hello, I am trying to read parameters in my program based on this example http://wiki.ros.org/Parameter%20Server Here is code snippet ...
user avatar
0 votes
1 answer
6 views

How to set and access local parameters when launching a nodelet?

I know how to set and read local a parameter using a plain node with "_param:=value" on the command line and ...
user avatar
0 votes
1 answer
3 views

Private Parameters in a sub namespace

Hello, I have a ROS node that essentially does this: ...
user avatar
0 votes
1 answer
6 views

Is there a environmental variable for current namespace in launchfiles?

Hi, I have created an multirobot launch for Gazebo. Now I found out that there is a solvable problem with the namespace in the robot state publisher. I solved it with adding a tf_prefix. But now here ...
user avatar
0 votes
1 answer
7 views

RViz notification on "params modified"

Hello all, I want to create a panel in RViz (part of a plugin) and this panel would contain widgets allowing me to create/modify ROS parameters. Now, as is, my RViz panel will not be updated if the ...
user avatar
0 votes
1 answer
6 views

Maximum number of contacts Gazebo ROS

Where and how can we set maximum number of contacts in Gazebo? By default the max. num. of contacts is 20 "rosparam get /gazebo/max_contacts" Setting the parameter to any other ( ex. 100) &...
user avatar
0 votes
1 answer
2 views

Bool state is incorrect when retrieved from param server

The code is: ros::NodeHandle nh_private("~"); bool state=false; nh_private.param<bool>("state", state, "false"); It turns ...
user avatar
0 votes
1 answer
2 views

Why can't I 'get' my rosrun parameters?

I have a node that should be able to run other nodes. It has a basic method of doing so using system("rosrun myproject Robot robotname:='Botty'"); This ...
user avatar