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

Shutdown when can not connect to sensor on startup in ROS2 (Humble/Iron) #211

Merged
merged 4 commits into from
Sep 12, 2023

Conversation

Samahu
Copy link
Contributor

@Samahu Samahu commented Sep 8, 2023

Related Issues & PRs

Summary of Changes

  • Shutdown node if failed to connect to the sensor on startup rather than hanging.

Validation

  • While sensor is properly wired launch ouster_ros through driver.launch.py or sensor.independent.launch.py
    • Verify the node configures and connects to the sensor as normal
  • Disconnect the sensor and then launch ouster_ros through driver.launch.py or sensor.independent.launch.py
    • Verify the node fails to connect and then shuts down as expected with an error message.
  • Validated by issue reporter.

@Samahu Samahu added the enhancement New feature or request label Sep 8, 2023
@Samahu Samahu self-assigned this Sep 8, 2023
@Samahu Samahu changed the title Shutdown when can not connect to sensor on startup Shutdown when can not connect to sensor on startup in ROS2 Sep 9, 2023
@Samahu Samahu changed the title Shutdown when can not connect to sensor on startup in ROS2 Shutdown when can not connect to sensor on startup in ROS2 (Humble/Iron) Sep 12, 2023
@Samahu Samahu marked this pull request as ready for review September 12, 2023 19:56
@Samahu Samahu merged commit 87d6d49 into ros2 Sep 12, 2023
3 checks passed
@Samahu Samahu deleted the ROS-209-process-hangs-on-failure-to-connect-to-lidar branch September 12, 2023 21:00
Samahu added a commit that referenced this pull request Nov 1, 2023
commit a8990f9
Author: Ussama Naal <[email protected]>
Date:   Wed Nov 1 14:32:28 2023 +0300

    SW-5607: rename package ouster_msgs to avoid package name conflict in ros index (#244)

    * rename package ouster_msgs to avoid conflict name conflict in ros index
    * set ouster_sensor_msgs version number to match with ouster_ros package

commit 87d6d49
Author: Ussama Naal <[email protected]>
Date:   Tue Sep 12 13:59:11 2023 -0700

    Shutdown when can not connect to sensor on startup in ROS2 (Humble/Iron) (#211)

    * Shutdown when can not connect to sensor on startup
    * Apply same behavior to independent launch file
    * Update changelog and package version
Samahu added a commit that referenced this pull request Nov 1, 2023
commit 81387db
Author: Ussama Naal <[email protected]>
Date:   Wed Nov 1 06:04:07 2023 -0700

    0.11.1

commit a8a9a10
Author: Ussama Naal <[email protected]>
Date:   Wed Nov 1 06:03:58 2023 -0700

    Add a forthcoming entry

commit deadb60
Author: Ussama Naal <[email protected]>
Date:   Wed Nov 1 05:59:15 2023 -0700

    Squashed commit of the following:

    commit a8990f9
    Author: Ussama Naal <[email protected]>
    Date:   Wed Nov 1 14:32:28 2023 +0300

        SW-5607: rename package ouster_msgs to avoid package name conflict in ros index (#244)

        * rename package ouster_msgs to avoid conflict name conflict in ros index
        * set ouster_sensor_msgs version number to match with ouster_ros package

    commit 87d6d49
    Author: Ussama Naal <[email protected]>
    Date:   Tue Sep 12 13:59:11 2023 -0700

        Shutdown when can not connect to sensor on startup in ROS2 (Humble/Iron) (#211)

        * Shutdown when can not connect to sensor on startup
        * Apply same behavior to independent launch file
        * Update changelog and package version

commit 1c8894a
Author: Ussama Naal <[email protected]>
Date:   Tue Sep 5 10:18:57 2023 -0700

    rolling-0.10.4

commit 5eda338
Author: Ussama Naal <[email protected]>
Date:   Tue Sep 5 10:17:48 2023 -0700

    reset version to 0.10.3
AchmadFathoni pushed a commit to AchmadFathoni/ouster-ros that referenced this pull request Feb 16, 2024
…on) (ouster-lidar#211)

* Shutdown when can not connect to sensor on startup
* Apply same behavior to independent launch file
* Update changelog and package version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants