Skip to content

Conversation

@ConnorNeed
Copy link
Member

Haven't added the pylint check to the ci/cd pipeline because there are 2 failing unused varible checks in the gps launch files. I didn't want to fix those and add conflicts because I know they are getting changed in #30.

Ideally we use an even stronger linter but this is a good start.

This pull request primarily focuses on cleaning up imports, simplifying launch files, and addressing minor code quality issues across several packages. The most significant changes include refining launch file dependencies, removing unused or redundant imports, and making small bug fixes to improve code clarity and maintainability.

Launch file and dependency cleanup:

  • Removed unnecessary or unused imports (such as SetEnvironmentVariable, ExecuteProcess, IncludeLaunchDescription, and others) from multiple launch files to simplify dependencies and improve readability (src/Bringup/launch/core.launch.py, src/Bringup/launch/drive.launch.py, src/Bringup/launch/video_streaming.launch.py, src/Arm/arm_urdf/launch/launch.py, src/Arm/arm_srdf/launch/talon.launch.py, src/HW-Devices/science_sensors/launch/talon.launch.py, src/Nav/gps/launch/rover.launch.py, src/Nav/localization/launch/navsat.launch.py) [1] [2] [3] [4] [5] [6] [7] [8].
  • Commented out or removed launch commands for unused nodes (e.g., slam_cmd in src/Nav/localization/launch/localization.launch.py, and a commented-out block for robot_state_publisher in src/Nav/elevation_mapping/launch/elevationMapping_launch.py) [1] [2] [3].

Bug fixes and code quality improvements:

  • Changed the return value to None when a video capture service is unavailable in capture_image to avoid returning an undefined value (src/HW-Devices/science_sensors/science_sensors/panoramic.py).
  • Fixed the unpacking of the return value from cv2.aruco.detectMarkers to ignore unused variables (src/Cameras/computer_vision/computer_vision/zed_aruco_detector.py).
  • Updated import paths for the stellarnet_driver3 module to use an absolute import (src/HW-Devices/science_sensors/science_sensors/stellarnet_demo.py).

Simplification and removal of unused variables:

  • Removed unused variables and imports from various scripts to reduce clutter and potential confusion (e.g., math, os, time, subprocess, GeoPose, etc.) (src/Nav/cprt_gridmap_filters/scripts/visualize_decay_rate.py, src/Nav/gps/gps/heading_pub_node.py, src/Nav/localization/localization/republish_odometry.py, src/HW-Devices/science_sensors/science_sensors/panoramic.py, src/HW-Devices/science_sensors/launch/talon.launch.py, src/Nav/nav_commanders/nav_commanders/incremental_gps_commander.py) [1] [2] [3] [4] [5] [6].

Pylint configuration:

  • Added a .pylintrc configuration file to standardize linting behavior, specifying enabled/disabled checks and ignoring the third-party directory.

Asynchronous request handling:

  • Removed unused future variables when making asynchronous service calls, as the result is not used (src/HW-Devices/science_sensors/science_sensors/microscope_control.py, src/HW-Devices/servo_pkg/servo_pkg/servo_client.py) [1] [2].

Copy link
Contributor

@ErikCald ErikCald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Gemini_Generated_Image_btbqpqbtbqpqbtbq

Really putting this free gemini pro to good use lol

Copy link

@noodlekid noodlekid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some nit picky typing/formatting, up to you to resolve but I do think type enforcement should be mandatory.

@ConnorNeed ConnorNeed requested a review from noodlekid November 23, 2025 15:22
@ConnorNeed ConnorNeed merged commit 4e0cc02 into arm-launch-clean-up Nov 23, 2025
1 check passed
ConnorNeed added a commit that referenced this pull request Nov 23, 2025
* fix: all import errors

* fix: unused varibles

* chore: add pylint

* fix: code review comments
@ConnorNeed ConnorNeed mentioned this pull request Nov 23, 2025
ConnorNeed added a commit that referenced this pull request Nov 23, 2025
* fix: all import errors

* fix: unused varibles

* chore: add pylint

* fix: code review comments
Jayden442 pushed a commit that referenced this pull request Jan 15, 2026
* fix: all import errors

* fix: unused varibles

* chore: add pylint

* fix: code review comments
Jayden442 added a commit that referenced this pull request Jan 15, 2026
* port from old repo

* Removed logging for debugging

* drive mode

Minor fixes

Arm dummy

* Update servo to pub/sub for all modes

Linting and minor comments

slash in topic name

Small pi servo changes

Remove unnecessary import

Remove more imports

formatting

* Pi constant and readded toggle lights

Formatting

Radians in config

arm servo name

servo service revert

* Nav launch (#21)

* fix: navigation launch

* chore: update readme

* chore: add convenience script to source ros env

* chore: add zed folder to volumes for dev container

* chore: format

* chore: add gridmap filter dependancy

* chore: add host zed SDK to setup package

* Microservice video streaming (#19)

* feat: template for distributed streaming setup

* style: spelling

* Navigation tuning (#23)

* feat: split nav2 and mapping launches

* feat: reduce layers on traversability_postprocessing

* chore: format

* chore: clean up parameters passed in

* Aruco changes (#24)

* chore: move plugins to video_streaming package

* chore: seperate gstreamer plugins

* docs: file extension

* chore: allow camera work in linux dev container

* feat: optimize aruco detection

* feat: ros2 image source gst-plugin

* updating limits with encoder movement (#29)

Co-authored-by: Jetson <softlead@curover.ca>

* Optimize Decay Computation in radialInflateSerial (#16)

* Optimize Decay Computation in radialInflateSerial

* fix: get preserve cost inflation working

* style: autoformat

---------

Co-authored-by: ConnorN <connor.needham2015@gmail.com>

* Offset issues (#33)

* feat: use talon sensor offset support

* tune: fix sensor offsets and limits

* style: format

* fix: current ticks issue

* Arm launch clean up (#31)

* chore: manual clean up

* chore: ai cleanup

* chore: remove redundant files

* fix: remove duplicate rsp

* fix: move ros2_control_node to individual node

* Add open loop drive option to talon drive controller (#28)

* feat: open loop drive option

* Format code and test

---------

Co-authored-by: Jetson <softlead@curover.ca>

* Pylint (#32)

* fix: all import errors

* fix: unused varibles

* chore: add pylint

* fix: code review comments

* Feature/srt component (#36)

* Fix build: Reduce parallel workers to 1 to save memory

* feat: add SRT node for video streaming with GStreamer integration

* fix: restore dynamic parallel worker count in build script

* Style: auto-format launch file with black

* Fix: syntax error and formatting in srt_node.cpp

* Refactor: improve code formatting and organization in SrtNode class

* Refactor: update CMakeLists.txt and package.xml for improved dependency management; modify SRT node parameters for testing

* Refactor: improve formatting and organization in SrtNode class; streamline try-catch blocks and enhance pipeline description logging

* Refactor: update SRT node parameters for improved configuration; change default srt_uri and add test_mode parameter

* Refactor: improve formatting and organization in SrtNode class; streamline parameter declarations and subscription bindings

* improve code formatting

* fix: pipeline fixes during testing

---------

Co-authored-by: Ju <bangmar@iclod.com>
Co-authored-by: ConnorN <connor.needham2015@gmail.com>

* port from old repo

Removed logging for debugging

Linting and minor comments

slash in topic name

Small pi servo changes

Remove unnecessary import

Remove more imports

formatting

Removed max_num_servo

formatting

* Fixed build errors and warnings

Fixed typing on science

Fix drive mode servo client

* Allow multiple servos

Fixed config

Check all ports for all servo types

linting

* Removed duplicates in pi servo

* Lint compliance

---------

Co-authored-by: Connor Needham <129120300+ConnorNeed@users.noreply.github.com>
Co-authored-by: ConnorN <connor.needham2015@gmail.com>
Co-authored-by: Darren Wallace <63486143+TheWalrus368@users.noreply.github.com>
Co-authored-by: Jetson <softlead@curover.ca>
Co-authored-by: Jack Wong <120768324+jackcwong2007@users.noreply.github.com>
Co-authored-by: Erik <43829793+ErikCald@users.noreply.github.com>
Co-authored-by: 潤辰| Runchen Zhao <runchenzhao@cmail.carleton.ca>
Co-authored-by: Ju <bangmar@iclod.com>
Jayden442 added a commit that referenced this pull request Jan 22, 2026
* port from old repo

* Removed logging for debugging

* Linting and minor comments

* slash in topic name

* Small pi servo changes

* Remove unnecessary import

Remove more imports

formatting

* Removed max_num_servo

* formatting

* [Draft] Refactor Servo Architecture Part 2 (#34)

* port from old repo

* Removed logging for debugging

* drive mode

Minor fixes

Arm dummy

* Update servo to pub/sub for all modes

Linting and minor comments

slash in topic name

Small pi servo changes

Remove unnecessary import

Remove more imports

formatting

* Pi constant and readded toggle lights

Formatting

Radians in config

arm servo name

servo service revert

* Nav launch (#21)

* fix: navigation launch

* chore: update readme

* chore: add convenience script to source ros env

* chore: add zed folder to volumes for dev container

* chore: format

* chore: add gridmap filter dependancy

* chore: add host zed SDK to setup package

* Microservice video streaming (#19)

* feat: template for distributed streaming setup

* style: spelling

* Navigation tuning (#23)

* feat: split nav2 and mapping launches

* feat: reduce layers on traversability_postprocessing

* chore: format

* chore: clean up parameters passed in

* Aruco changes (#24)

* chore: move plugins to video_streaming package

* chore: seperate gstreamer plugins

* docs: file extension

* chore: allow camera work in linux dev container

* feat: optimize aruco detection

* feat: ros2 image source gst-plugin

* updating limits with encoder movement (#29)

Co-authored-by: Jetson <softlead@curover.ca>

* Optimize Decay Computation in radialInflateSerial (#16)

* Optimize Decay Computation in radialInflateSerial

* fix: get preserve cost inflation working

* style: autoformat

---------

Co-authored-by: ConnorN <connor.needham2015@gmail.com>

* Offset issues (#33)

* feat: use talon sensor offset support

* tune: fix sensor offsets and limits

* style: format

* fix: current ticks issue

* Arm launch clean up (#31)

* chore: manual clean up

* chore: ai cleanup

* chore: remove redundant files

* fix: remove duplicate rsp

* fix: move ros2_control_node to individual node

* Add open loop drive option to talon drive controller (#28)

* feat: open loop drive option

* Format code and test

---------

Co-authored-by: Jetson <softlead@curover.ca>

* Pylint (#32)

* fix: all import errors

* fix: unused varibles

* chore: add pylint

* fix: code review comments

* Feature/srt component (#36)

* Fix build: Reduce parallel workers to 1 to save memory

* feat: add SRT node for video streaming with GStreamer integration

* fix: restore dynamic parallel worker count in build script

* Style: auto-format launch file with black

* Fix: syntax error and formatting in srt_node.cpp

* Refactor: improve code formatting and organization in SrtNode class

* Refactor: update CMakeLists.txt and package.xml for improved dependency management; modify SRT node parameters for testing

* Refactor: improve formatting and organization in SrtNode class; streamline try-catch blocks and enhance pipeline description logging

* Refactor: update SRT node parameters for improved configuration; change default srt_uri and add test_mode parameter

* Refactor: improve formatting and organization in SrtNode class; streamline parameter declarations and subscription bindings

* improve code formatting

* fix: pipeline fixes during testing

---------

Co-authored-by: Ju <bangmar@iclod.com>
Co-authored-by: ConnorN <connor.needham2015@gmail.com>

* port from old repo

Removed logging for debugging

Linting and minor comments

slash in topic name

Small pi servo changes

Remove unnecessary import

Remove more imports

formatting

Removed max_num_servo

formatting

* Fixed build errors and warnings

Fixed typing on science

Fix drive mode servo client

* Allow multiple servos

Fixed config

Check all ports for all servo types

linting

* Removed duplicates in pi servo

* Lint compliance

---------

Co-authored-by: Connor Needham <129120300+ConnorNeed@users.noreply.github.com>
Co-authored-by: ConnorN <connor.needham2015@gmail.com>
Co-authored-by: Darren Wallace <63486143+TheWalrus368@users.noreply.github.com>
Co-authored-by: Jetson <softlead@curover.ca>
Co-authored-by: Jack Wong <120768324+jackcwong2007@users.noreply.github.com>
Co-authored-by: Erik <43829793+ErikCald@users.noreply.github.com>
Co-authored-by: 潤辰| Runchen Zhao <runchenzhao@cmail.carleton.ca>
Co-authored-by: Ju <bangmar@iclod.com>

---------

Co-authored-by: Connor Needham <129120300+ConnorNeed@users.noreply.github.com>
Co-authored-by: ConnorN <connor.needham2015@gmail.com>
Co-authored-by: Darren Wallace <63486143+TheWalrus368@users.noreply.github.com>
Co-authored-by: Jetson <softlead@curover.ca>
Co-authored-by: Jack Wong <120768324+jackcwong2007@users.noreply.github.com>
Co-authored-by: Erik <43829793+ErikCald@users.noreply.github.com>
Co-authored-by: 潤辰| Runchen Zhao <runchenzhao@cmail.carleton.ca>
Co-authored-by: Ju <bangmar@iclod.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants