Skip to content

Commit

Permalink
fix Crash node if easy_fleet creation fails (#159)
Browse files Browse the repository at this point in the history
* fix Crash node if easy_fleet creation fails

Upon creation of the EasyFullControl object the node may keep running even tho the returned pointer is null

Signed-off-by: thomasung <thomas.ung@pal-robotics.com>

lint

Signed-off-by: thomasung <thomas.ung@pal-robotics.com>

* rephrase comments

Signed-off-by: thomasung <thomas.ung@pal-robotics.com>

follow pycodestyle

Signed-off-by: Thomas Ung <tomkimsour@hotmail.fr>

---------

Signed-off-by: thomasung <thomas.ung@pal-robotics.com>
Signed-off-by: Thomas Ung <tomkimsour@hotmail.fr>
  • Loading branch information
tomkimsour authored Nov 15, 2024
1 parent 75b4d22 commit d57714b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions free_fleet_adapter/free_fleet_adapter/fleet_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ def main(argv=sys.argv):
fleet_config.add_robot_coordinates_transformation(level, tf)

fleet_handle = adapter.add_easy_fleet(fleet_config)
assert fleet_handle is not None, \
"Failed to create EasyFullControl fleet, \
please verify that the fleet config is valid."

# Initialize zenoh
zenoh_config = zenoh.Config.from_file(args.zenoh_config) \
Expand Down

0 comments on commit d57714b

Please sign in to comment.