We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version: 1.63.2 Commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3 Date: 2021-12-15T09:39:46.686Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Linux x64 5.11.0-46-generic
Same as #513, but using arguments instead of args as mentionned. Here is my configuration:
arguments
args
{ "version": "0.2.0", "configurations": [ { "name": "test", "type": "ros", "request": "launch", "target": "${workspaceFolder}/test/thing.launch", "arguments": [ "message:=test2" ], "preLaunchTask": "make_debug", } ] }
Here is my launch file:
<launch> <arg name="message" default="test1"/> <node name="test" pkg="test_pkg" type="test.py" output="screen"> <param name="message" type="string" value="$(arg message)"/> </node> </launch>
Simple test node
#! /bin/env python import rospy from std_msgs.msg import String class Thing: def __init__(self): self.pub = rospy.Publisher('/test_message', String, queue_size=10) self.rate = rospy.Rate(10) # 10hz self.message = rospy.get_param("~message", "Hello") def run(self): while not rospy.is_shutdown(): self.pub.publish(self.message) self.rate.sleep() if __name__ == '__main__': rospy.init_node('test', anonymous=True) thing = Thing() try: thing.run() except rospy.ROSInterruptException: pass
The test message should then be test2 but it is test1.
test2
test1
The example files above could be used if added in a simple ROS package, and if the pkg attribute in the launch file was changed to match.
pkg
The arguments in the arguments part of the launch.json should be passed to the launch file.
The text was updated successfully, but these errors were encountered:
Thank you for the bug and the simple repro steps. I'll take a look!
Sorry, something went wrong.
ooeygui
No branches or pull requests
Version: 1.63.2
Commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3
Date: 2021-12-15T09:39:46.686Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.11.0-46-generic
What is the bug
Same as #513, but using
arguments
instead ofargs
as mentionned.Here is my configuration:
Here is my launch file:
Simple test node
The test message should then be
test2
but it istest1
.Repro steps
The example files above could be used if added in a simple ROS package, and if the
pkg
attribute in the launch file was changed to match.Expected behavior
The arguments in the
arguments
part of the launch.json should be passed to the launch file.The text was updated successfully, but these errors were encountered: