ROS2 Error: Launch request requires an absolute path as target
See original GitHub issueI created a launch.json
file as seen below:
{
"version": "0.2.0",
"configurations": [
{
"name": "ROS: Launch",
"type": "ros",
"request": "launch",
"target": "/workspaces/mypkg/install/mypkg/share/mypkg/launch/mylaunchfile.launch.py"
}
]
}
When I run it, I get the error Launch request requires an absolute path as target
and nothing happens. And I’m obviously already passing an absolute path to target
.
How can I launch my launch file?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top Results From Across the Web
[ros2launch] [cli] ros2 launch fails with absolute path ... - GitHub
Expected behavior. Successfully runs the launch file for all variants. Actual behavior. Absolute 'single file' with argument fails with error:.
Read more >Debugging rostest in vscode - ROS Answers
There is an open issue in the vscode ros plugin, which should address debugging ... Launch request requires an absolute path as target....
Read more >visual studio code - Vscode-ROS not attaching - Stack Overflow
Here's a video on how to work with VSCode ROS extension and Python ... I had the same issue, so I was forced...
Read more >ROS 2 Launch System
roslaunch is a tool for easily launching multiple ROS nodes locally and remotely via SSH, as well as setting parameters on the Parameter...
Read more >The ROS Command Line Interface - Programming Multiple ...
The other command you need to commit to memory is ros2 . ... other potential issues interface Show information about ROS interfaces launch...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ooeygui Thanks for the answer! 😃 I haven’t tried it yet, all my launch commands are using
ros2 run ...
but I’ll give theros2 launch ...
a go and let you know how it went.@siferati Hi, thanks for reporting this issue. I am recently working on adding ROS2 launch debug support in this extension. And I’d like to invite you to try it from our daily build and see if it solves this issue. Thanks!