roslaunch.core.Node not detecting node arguments?

asked 2020-11-23 15:00:54 -0500

lagorio gravatar image

updated 2022-05-28 16:48:12 -0500

lucasw gravatar image

Hey. I'm trying to do something similar as what is in this example http://wiki.ros.org/roslaunch/API%20U...

I use a roslaunch and then add an extra node with roslaunch.core.Node. Node has a relevant parameter called planner_type that i want to a certain 'fixed' value. But it seems to get ignored in the roslaunch.core.Node environment.

Example of the relevant lines, i suspect I'm using the args variable incorrectly.

roslaunch_file = roslaunch.rlutil.resolve_launch_arguments(cli_args1)
launch.parent = roslaunch.parent.ROSLaunchParent(uuid, roslaunch_file)#, is_core =True)
launch.start()

node = roslaunch.core.Node(package=cli_args2[0], node_type=cli_args2[1], name=cli_args2[2],args='planner_type:=fixed')
process = launch.launch(node)
edit retag flag offensive close merge delete