Questions tagged [parameters]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
13 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
24 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
72 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
  • 31
0 votes
2 answers
45 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
66 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
27 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
  • 821
0 votes
1 answer
9 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
28 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
7 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
78 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
10 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
12 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
9 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
34 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
  • 478
0 votes
2 answers
11 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
22 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
25 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
63 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
38 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
3 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,823
0 votes
1 answer
21 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
2 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
2 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
7 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
5 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
13 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
6 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
1 view

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
100 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,244
0 votes
1 answer
9 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,192
0 votes
2 answers
8 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
9 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
34 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
  • 184
0 votes
1 answer
18 views

runtime error after trying to set parameters in ROS2

When I try to set parameters, I'm getting the following error: terminate called after throwing an instance of 'std::runtime_error' ...
user avatar
0 votes
1 answer
2 views

Need help with passing parameters to a launch file

I would like to over ride rtabmap parameters on a rosrun command line....I want to used the unaltered rtabmap launch file overriding some of the Grid parameters. Can this be done from the command line?...
user avatar
0 votes
1 answer
4 views

Initialize parameters via yaml in ros2

According to this PR, we can now initialize parameters via yaml file. I edited the talker example to have the parameter client so I can see the changes in parameters, but when I try to load the ...
user avatar
0 votes
1 answer
1 view

Is it possible to set parameters like inertial, collisions in launch not in urdf?

Hi, I'm working on a robot. I didn't set parameters inertial and collisions in my URDF. Is it possible to set these params in launch file? How? I know that I can change the URDF file, but it is ...
user avatar
0 votes
1 answer
2 views

API for changing a camera resolution

What is the standard ROS way for implementing on-the-fly resolution changing for a camera node? I haven't found any official articles on this, also I haven't found any popular camera nodes, supporting ...
user avatar
0 votes
1 answer
10 views

How to remap a private parameter

In a launch file I want to remap parameters of my node to other, already existing parameters. It is working for global parameters but not for private ones. This is a simple example node "param.py&...
user avatar
0 votes
1 answer
2 views

What's the best way to publish dynamic parameters to a topic when they change?

I'd like to publish dynamic parameters (from dynamic_reconfigure) to a topic from a C++ node when they change, for the purpose of recording parameter changes in a bag file. In Python, I just convert ...
user avatar
0 votes
1 answer
9 views

costmap parameters - navigation stack

Hello, for me it's unclear what parameters have to/can be in common_costmap_params.yaml, local_costmap_params.yaml and global_costmap_params.yaml This tutorial http://wiki.ros.org/navigation/Tutorials/...
user avatar
0 votes
1 answer
14 views

RTAB-Map not using correct parameters

I've been trying to get RTAB-Map going in simulation using a depth camera plugin. I've been able to get it all working, however it seems that RTAB-Map uses its default parameters, rather than the ones ...
user avatar
0 votes
1 answer
3 views

getParam question

I seem to be unable to gain access to params passed to node....I want to read them from a callback. ...
user avatar
0 votes
1 answer
6 views

Can not retrieve parameters

I am running ur5_moveit_config demo.launch from ros-industrial's universal robot package and I'd like to control it from my node....
user avatar
0 votes
1 answer
1 view

Camera Pose Calibration Valid_Pattern_Ratio_Threshold and Circle Spacing

Hi, I started working with the Camera Pose Calibration Package by Delft Robotics (https://github.com/delftrobotics/camera_pose_calibration) to find extrinsic calibration parameters for a Realsense ...
user avatar
0 votes
1 answer
16 views

Run rosparam load in runtime?

Hi ROS Community, I am relatively new to ROS, but so far I have managed to solve everything using examples and tutorials online. Now, I want to be able to reload the parameters from a certain .yaml ...
user avatar
0 votes
1 answer
2 views

Can global parameters be used with dynamic_reconfigure?

Hi everyone, when using dynamic_reconfigure, the parameters used are linked to specific nodes. For example, if there is a cfg/MyConfig.cfg file with a parameter such as gen.add('my_param', int_t,....),...
user avatar
0 votes
1 answer
1 view

ros::Service same class instance in frequent callback

Hello People, I'm currently having issues writing a ros service for setting moveit goals. It looks like this: ...
user avatar