question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ROS2 Error: Launch request requires an absolute path as target

See original GitHub issue

I 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:open
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
maciej-autoboncommented, Jun 25, 2021

@ooeygui Thanks for the answer! 😃 I haven’t tried it yet, all my launch commands are using ros2 run ... but I’ll give the ros2 launch ... a go and let you know how it went.

1reaction
seanyencommented, Jan 13, 2021

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found