You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I noticed that in moveit2 and the ROS2 branches of moveit_resources, etc some of the yaml config files (e.g. here or here) are still using the ROS1 format (parameter name: value), while others (e.g. here) are using the ROS2 format (namespace -> node name -> ros__parameters --> parameter name / value).
As a result, loading parameters in a node using a python launch file requires the use of this load_yaml() function, as opposed to the more "ROS2-esque" approach of simply including the path to the yaml file in question as a Node parameter.
The latter would omit the need to define custom file loading functions in each launch file and would be more amenable to modularizing and generalizing launch files using LaunchArguments to specify config files rather than having them as hard-coded paths. It would also potentially make things easier for users to use only the ROS2 format (at the cost of making it slightly harder to migrate ROS1 configurations).
Describe the solution you'd like
It would be great to standardize all yaml config files using the ROS2 format. That said, I'm fairly new to Moveit2 and am not sure if there would be more involved than just changing the config files themselves to include ros__parameters.
The text was updated successfully, but these errors were encountered:
One of the big problems is some of the moveit2 nodes can also be launched as component nodes. In that case ros doesn't handle the ros__parameters prefix correctly. If you look here: https://github.com/PickNikRobotics/parameter_tools/@JafarAbdi has built something to standardize loading ros parameters for moveit. Soon we plan on migrating the moveit launch files to use this tool. Another thing we are doing to standardize parameters is I'm working on something to handle validating parameters in a more ros2 way.
for the reference of anyone that come's across this issue, it looks like Component Nodes will soon support the same yaml file format as regular nodes (ros2/launch_ros#259 ) but the parameter_tools package looks like a great solution as well.
I had a trouble due to ros__parameter when I loaded the yaml parameter files in a xml launch file or from command line arguments. As mentioned above, the problem of component nodes was solved, then we should make the yaml parameter files standard.
Is your feature request related to a problem? Please describe.
I noticed that in moveit2 and the ROS2 branches of moveit_resources, etc some of the yaml config files (e.g. here or here) are still using the ROS1 format (parameter name: value), while others (e.g. here) are using the ROS2 format (namespace -> node name -> ros__parameters --> parameter name / value).
As a result, loading parameters in a node using a python launch file requires the use of this
load_yaml()
function, as opposed to the more "ROS2-esque" approach of simply including the path to the yaml file in question as aNode
parameter.The latter would omit the need to define custom file loading functions in each launch file and would be more amenable to modularizing and generalizing launch files using
LaunchArgument
s to specify config files rather than having them as hard-coded paths. It would also potentially make things easier for users to use only the ROS2 format (at the cost of making it slightly harder to migrate ROS1 configurations).Describe the solution you'd like
It would be great to standardize all yaml config files using the ROS2 format. That said, I'm fairly new to Moveit2 and am not sure if there would be more involved than just changing the config files themselves to include
ros__parameters
.The text was updated successfully, but these errors were encountered: