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

Feat/unify zoom units #13

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

rcartarobotnik
Copy link

This pull request includes significant updates to the PTZ (Pan-Tilt-Zoom) camera control configuration and functionality. The changes involve adding new parameters for zoom control, updating the launch configuration, and modifying the PTZ node implementation to handle these new parameters and improve diagnostics.

Configuration Updates:

Launch File Update:

  • launch/axis.launch: Changed the node type from axis_node.py to axis_ptz_node.py to use the updated PTZ node implementation.

PTZ Node Implementation:

  • src/axis_camera/axis_ptz_node.py:
    • Imported CameraParameters for publishing zoom information.
    • Updated __init__ method to include new zoom parameters: min_zoom_step, min_zoom_augment, and max_zoom_augment.
    • Added a publisher for zoom parameters and initialized zoom augment values in rosSetup. [1] [2]
    • Modified setCommandPTZ to handle zoom commands with new parameters and ensure zoom value normalization.
    • Added logging for PTZ limit enforcement in enforcePTZLimits.
    • Updated publishROS to publish zoom parameters and normalize zoom values before publishing. [1] [2]
    • Updated main function to include new zoom parameters in the argument dictionary.

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.

2 participants