Skip to content
New issue

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

added default working directory when no working directory is specified #22420

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

JohnTGZ
Copy link

@JohnTGZ JohnTGZ commented Nov 21, 2023

Solved Problem

This fixes #22419, where the PX4-SITL instance dies due to wrong default working directory.

Solution

  • Added default working directory when no working directory is specified to the arguments for the px4 executable

Alternatives

As a temporary fix without modifying the source code, I modified the px4 node in px4.launch to specify the working directory path explicitly, as shown below:

    <node name="sitl_$(arg ID)" pkg="px4" type="px4" output="screen" args="$(find px4)/build/px4_sitl_default/etc -s etc/init.d-posix/rcS -i $(arg ID) $(arg px4_command_arg1) -w $(find px4)/build/px4_sitl_default/rootfs">

@dagar
Copy link
Member

dagar commented Nov 30, 2023

CI SITL tests are failing, need to investigate.

Ensure that this executes regardless of whether PX4_SOURCE_DIR is defined or not
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] PX4-SITL dies due to wrong default working directory
3 participants