ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
![]() | 1 | initial version |
Hello,
After digging for a while, I believe it's not possible to set the arguments using the API.
There are related questions in this forum and seems that the users are using python subprocess to do that:
https://answers.ros.org/question/198910/how-to-set-args-with-python-roslaunch/ https://answers.ros.org/question/265796/parameters-roslaunch-from-python-script/
Fortunately, there's a Pull Request that proposes a solution to that issue:
https://github.com/ros/ros_comm/pull/1115
I hope it can help you!
![]() | 2 | No.2 Revision |
Hello,
After digging for a while, I believe it's not possible to set the arguments using the API.
There are related questions in this forum and seems that the users are using python subprocess to do that:
https://answers.ros.org/question/198910/how-to-set-args-with-python-roslaunch/ https://answers.ros.org/question/265796/parameters-roslaunch-from-python-script/
There's a page in ROS wiki as example, but without arguments: http://wiki.ros.org/roslaunch/API%20Usage
If you want to check by yourself, here goes the API page that refers to the launch object used in a ROS wiki:
http://docs.ros.org/indigo/api/roslaunch/html/roslaunch.parent.ROSLaunchParent-class.html
Fortunately, there's a Pull Request that proposes a solution to that issue:
https://github.com/ros/ros_comm/pull/1115
I hope it can help you!