Ask Your Question

relffok's profile - activity

2022-03-19 12:05:53 -0500 received badge  Notable Question (source)
2022-03-14 14:10:33 -0500 marked best answer Access launch argument in LaunchFile ROS2

Hi, I've been trying to Use my Launch Arguments inside of my Launch File for further purposes. So I can declare it by using launch.actions.DeclareLaunchArgument( 'param1', default_value="defaultString") and access it later using launch.substitutions.LaunchConfiguration( 'param1') to pass it to a node or whatever. The type of this element is a launch.substitutions.launch_configuration.LaunchConfiguration object.

Now I want to use the content of this argument as a string for building filepaths for example. I know several functions are able to interpret the LaunchConfiguration object but I specifically to read it as a string. I have not found a way to do so. As I need to access multiple arguments several times, I am looking for a simple implementation.

Any ideas? Thanks!

(I am working with ROS2 Dashing)

2022-02-12 05:28:47 -0500 answered a question Attach One Robot to Another

First of all think about if it is necessary to have the lidar-unit defined as a separate robot. Do you need a separate r

2022-02-12 05:28:47 -0500 received badge  Rapid Responder (source)
2022-01-19 15:18:35 -0500 received badge  Great Question (source)
2022-01-06 02:03:12 -0500 received badge  Popular Question (source)
2021-12-22 08:35:36 -0500 received badge  Guru (source)
2021-12-22 08:35:36 -0500 received badge  Great Answer (source)
2021-11-18 04:49:30 -0500 edited question Is there a dynamic parameter configuration GUI in ROS2?

Is there a dynamic parameter configuration GUI in ROS2? I was wondering if there is any working GUI available to dynamic

2021-11-18 04:48:26 -0500 asked a question Is there a dynamic parameter configuration GUI in ROS2?

Is there a dynamic parameter configuration GUI in ROS2? I was wondering if there is any working GUI available to dynamic

2021-11-18 04:43:44 -0500 received badge  Popular Question (source)
2021-09-13 07:00:46 -0500 edited question Why should I not send a nav2 goal pose in a relative frame?

Why should I not send a nav2 send_goal in a relative frame? Hi, I was playing around with the nav2 stack and asked mys

2021-09-13 07:00:30 -0500 edited question Why should I not send a nav2 goal pose in a relative frame?

nav2 send_goal in relative frame Hi, I was playing around with the nav2 stack and asked myself the following when I tr

2021-09-13 06:59:03 -0500 asked a question Why should I not send a nav2 goal pose in a relative frame?

nav2 send_goal in relative frame Hi, I was playing around with the nav2 stack and asked myself the following when I tr

2021-03-23 13:38:59 -0500 received badge  Good Question (source)
2021-02-10 12:47:19 -0500 marked best answer Is teleop_twist_keyboard launchable in ROS2?

Hi, fairly new to ROS2 I am currently trying to work with launch files. I was trying to simply launch the teleop_twist_keyboard but it would't work.

    launch_ros.actions.Node(
        package="teleop_twist_keyboard",
        node_executable="teleop_twist_keyboard",
        output='screen',
        node_name='teleop')

I don't get an error message, and the topic node connections in rqt look right too. Although I don't the usual console output (telling me which keys I should use). Is this package launchable yet? What can I do?

I am working with dashing. Thanks!

2021-01-13 02:56:05 -0500 received badge  Enlightened (source)
2021-01-13 02:56:05 -0500 received badge  Good Answer (source)
2020-12-04 14:18:42 -0500 received badge  Famous Question (source)
2020-12-02 08:10:18 -0500 received badge  Nice Question (source)
2020-10-31 10:31:27 -0500 received badge  Nice Answer (source)
2020-07-13 08:07:47 -0500 received badge  Teacher (source)
2020-07-13 08:07:47 -0500 received badge  Self-Learner (source)
2020-07-05 11:12:38 -0500 received badge  Famous Question (source)
2020-06-09 13:54:04 -0500 received badge  Notable Question (source)
2020-06-09 13:54:04 -0500 received badge  Popular Question (source)
2020-06-04 03:30:22 -0500 received badge  Student (source)
2020-04-20 13:56:34 -0500 marked best answer ROS2: using xacro in launch file - passing parameters

Hi there,

I've been using xacro.process_file(<file_name>)to convert from xacro to urdf, it works just fine. Now I have implemented a xacro argument in my file and I want to pass that from my launch file. It just doesn't get read with my current implementation.

XACRO:

<xacro:arg name="simulate_obstacles" default="true"/>
<xacro:if value="$(arg simulate_obstacles)">
  <...doing_something...>  
</xacro:if>

LAUNCH FILE:

doc = xacro.process_file(xacro_file, simulate_obstacles='false')

When running the xacro from the commandline I don't have any problem passing arguments. What am I doing wrong here? Or is there even a more simple way to use xacro in launch files in ROS2?

Thank you!

Working with eloquent.

2020-04-20 13:56:34 -0500 received badge  Scholar (source)
2020-04-20 13:56:20 -0500 answered a question ROS2: using xacro in launch file - passing parameters

Hi, it seems like this fixes the issue: doc = xacro.process_file(xacro_file, mappings={'simulate_obstacles' : 'false'}

2020-04-17 20:20:38 -0500 edited question ROS2: using xacro in launch file - passing parameters

ROS2: using xacro in launch file: passing parameters Hi there, I've been using xacro.process_file(<file_name>)to

2020-04-17 20:20:23 -0500 asked a question ROS2: using xacro in launch file - passing parameters

ROS2: using xacro in launch file: passing parameters Hi there, I've been using xacro.process_file(<file_name>)to

2020-04-17 18:56:16 -0500 received badge  Notable Question (source)
2020-03-24 18:27:37 -0500 commented question Composable LifeCycle Node

Hi, is there any update on this? All I could find is this issue: https://github.com/ros2/launch_ros/issues/41

2020-03-10 07:54:23 -0500 received badge  Famous Question (source)
2020-01-29 08:39:26 -0500 received badge  Famous Question (source)
2020-01-29 08:39:26 -0500 received badge  Notable Question (source)
2020-01-22 14:04:01 -0500 commented question Conversion of sensor type[depth] not supported - Gazebo 9

You're right, it is properly working. I was too focused on the warn message and didn't check. Thanks a lot!