ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

AndyZe's profile - activity

2023-09-26 16:37:23 -0500 received badge  Famous Question (source)
2023-08-08 15:03:49 -0500 received badge  Necromancer (source)
2023-07-26 14:06:57 -0500 received badge  Good Answer (source)
2023-07-03 14:18:25 -0500 received badge  Good Answer (source)
2023-06-10 01:37:02 -0500 received badge  Notable Question (source)
2023-06-10 01:37:02 -0500 received badge  Famous Question (source)
2023-05-31 08:03:02 -0500 marked best answer 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

YAML2:

- id: foo2
  waypoints:
    - type: foo2

Launch file:

    <node name="foo" pkg="foo"
          type="foo" required="true">

          <!-- Common config, applicable to all robot types -->
          <rosparam file="$(arg common_maintenance_config)" command="load" ns="maintenance_motions"/>
          <!-- Configuration specific to this robot -->
          <rosparam file="$(arg robot_specific_maintenance_config)" command="load" ns="maintenance_motions"/>
   </node>

Seems pretty straight-forward, right? In practice, I find that the second set of parameters overwrites the first. So if I do rosparam get /maintenance_motions the result is:

- id: foo2
  waypoints:
    - type: foo2

So the second yaml overwrote the first one. What is the least janky workaround? I've already tried loading all parameters in the global namespace.

2023-05-29 03:55:07 -0500 received badge  Self-Learner (source)
2023-05-28 22:16:57 -0500 received badge  Rapid Responder (source)
2023-05-28 22:16:57 -0500 answered a question Loading 2 yaml's to same parameter namespace

I ended up writing a simple Python script which concatenates the two yaml files together into one yaml file, then loads

2023-05-28 15:32:25 -0500 commented question Loading 2 yaml's to same parameter namespace

Kinda-related question: https://answers.ros.org/question/199608/roslaunch-order-of-rosparams/ Possible answer involvin

2023-05-28 15:32:08 -0500 commented question Loading 2 yaml's to same parameter namespace

Kinda-related question: https://answers.ros.org/question/199608/roslaunch-order-of-rosparams/ Possible answer involving

2023-05-28 14:51:38 -0500 commented answer roslaunch order of rosparams

Aren't these two statements contradictory: The load command is considered additive Similarly, load commands can overri

2023-05-28 14:51:28 -0500 commented answer roslaunch order of rosparams

Aren't these two statements contradictory: The load command is considered additive: Similarly, load commands can overr

2023-05-28 14:36:44 -0500 edited question Loading 2 yaml's to same parameter namespace

Loading 2 yaml's to same parameter (ROS1 Noetic) I want to load 2 sets of parameters from 2 different yamls to the same

2023-05-28 14:33:39 -0500 edited question Loading 2 yaml's to same parameter namespace

Loading 2 yaml's to same parameter (ROS1 Noetic) I want to load 2 sets of parameters from 2 different yamls to the same

2023-05-28 14:33:28 -0500 edited question Loading 2 yaml's to same parameter namespace

Loading 2 yaml's to same parameter (ROS1 Noetic) I want to load 2 sets of parameters from 2 different yamls to the same

2023-05-28 14:32:45 -0500 asked a question Loading 2 yaml's to same parameter namespace

Loading 2 yaml's to same parameter (ROS1 Noetic) I want to load 2 sets of parameters from yaml to the same namespace fro

2023-05-10 13:44:01 -0500 received badge  Necromancer (source)
2023-05-07 13:32:57 -0500 received badge  Nice Question (source)
2023-05-07 09:05:49 -0500 commented answer moveit_servo pose tracking only works with Panda arm?

Thanks Dan! The pose tracking functionality is likely to change after Humble. A Google Summer of Code project is workin

2023-05-05 15:58:41 -0500 commented answer tf_static frames not available in lookup_transform

My takeaway is to avoid Python in ROS2 like the plague :/

2023-05-05 15:07:15 -0500 received badge  Necromancer (source)
2023-04-28 08:21:00 -0500 marked best answer ROS2 launch file: how to convert LaunchArgument to string

I want to convert either a LaunchConfiguration or a LaunchArgument to a string so I can use it in a filepath later. How to do it?

Example:

support_package = LaunchConfiguration("support_package")

declared_arguments = []

declared_arguments.append(
    DeclareLaunchArgument(
        "support_package",
        description="Name of the support package",
        choices=["abb_irb_1200_support"],
    )
)

robot_description_config = xacro.process_file(
    os.path.join(
        get_package_share_directory(support_package),  # FAILURE AT THIS LINE
        "urdf",
        "irb1200_5_90.xacro",
    )
)

The failure is:

Caught exception when trying to load file of format [py]: expected string or bytes-like object

I'm not much of a Python programmer, but an str() function would be great.

Related question: https://answers.ros.org/question/3407...

2023-04-27 12:42:01 -0500 edited answer MoveIt problem. error: Trajectory message contains waypoints that are not strictly increasing in time

This can be caused by one of the older, buggy time parameterization algorithms in your MoveIt setup. To fix this, you ca

2023-04-24 08:37:01 -0500 commented answer Following a winding path with MoveIt

By the way, do you happen to work for a company starting with "I", @Hennifre?

2023-04-24 08:26:25 -0500 commented answer Following a winding path with MoveIt

New info about 5-dof: Pilz definitely won't work for 5-dof You can use the bio_ik solver since it returns approximate

2023-04-24 06:06:58 -0500 received badge  Nice Answer (source)
2023-04-23 06:52:56 -0500 received badge  Popular Question (source)
2023-04-23 06:52:56 -0500 received badge  Notable Question (source)
2023-04-21 10:55:35 -0500 commented question How to clean up ROS paths

"Did you build your workspace with both sourced?" I sourced one, built, then sourced the other, opened a new terminal,

2023-04-21 10:37:12 -0500 commented question How to clean up ROS paths

"Did you build your workspace with both sourced?" I sourced one, built, then sourced the other, then tried to build. "

2023-04-21 10:36:01 -0500 commented question How to clean up ROS paths

"Did you build your workspace with both sourced?" I sourced one, built, then sourced the other, then tried to build. "

2023-04-21 10:35:51 -0500 commented question How to clean up ROS paths

"Did you build your workspace with both sourced?" I sourced one, built, then sourced the other, then tried to build. "

2023-04-20 11:29:52 -0500 asked a question How to clean up ROS paths

How to clean up ROS paths Somehow ROS2 humble and rolling got mixed up in my environment variables, like this: PATH=/us

2023-04-19 09:56:13 -0500 edited answer Following a winding path with MoveIt

I would: Use moveit_cpp. Tutorial here Use the Pilz industrial motion planner to plan the circular segment and the lin

2023-04-19 08:32:03 -0500 edited answer Following a winding path with MoveIt

I would: Use moveit_cpp. Tutorial here Use the Pilz industrial motion planner to plan the circular segment and the lin

2023-04-19 08:19:57 -0500 received badge  Rapid Responder (source)
2023-04-19 08:19:57 -0500 answered a question Following a winding path with MoveIt

I would: Use moveit_cpp. Tutorial here Use the Pilz industrial motion planner to plan the circular segment and the lin

2023-04-18 16:23:17 -0500 received badge  Nice Question (source)
2023-04-18 13:36:52 -0500 received badge  Nice Question (source)
2023-04-06 20:25:36 -0500 received badge  Nice Answer (source)
2023-03-09 14:04:55 -0500 received badge  Rapid Responder (source)
2023-03-09 14:04:55 -0500 answered a question Is pilz_industrial_motion_planner already implemented in ROS2 Humble and Moveit2?

Yes it is! The tutorial hasn't been updated since MoveIt1 but not much has changed: https://moveit.picknik.ai/humble/do

2023-03-09 06:59:28 -0500 commented answer MoveIt moving goal support

Send an email to hello@picknik.ai if you're interested in more detailed consulting.

2023-03-09 06:49:00 -0500 commented answer MoveIt moving goal support

This is tough. There may be additional complicating factors you haven't told me about yet. If you use regular MoveIt pl

2023-03-08 07:25:00 -0500 received badge  Rapid Responder (source)
2023-03-08 07:25:00 -0500 answered a question MoveIt moving goal support

If you can upgrade to ROS 2, hybrid planning could achieve what you want. https://moveit.picknik.ai/humble/doc/concepts

2023-02-24 09:12:58 -0500 received badge  Necromancer (source)