Skip to content

feat: add focus and iris service#21

Open
andreacalm wants to merge 1 commit intoros-develfrom
feat/focus-and-iris-service
Open

feat: add focus and iris service#21
andreacalm wants to merge 1 commit intoros-develfrom
feat/focus-and-iris-service

Conversation

@andreacalm
Copy link
Copy Markdown
Collaborator

Add focus and iris control services to PTZ node

What changed

  • axis_control.py: extended sendPTZCommand() with optional focus, autofocus, iris, autoiris params
  • axis_ptz_node.py: added ~set_focus and ~set_iris services, internal desired state for optics, restored ~camera_params publisher
  • srv/set_focus.srv, srv/set_iris.srv: new service definitions
  • CMakeLists.txt: registered new services
  • README.md: documented new services with usage examples

Behaviour

  • autofocus=true → sends autofocus=on, camera controls focus automatically
  • autofocus=false + focus=<val> → sends manual focus value
  • Same logic for ~set_iris / autoiris
  • If camera does not support focus/iris: rospy.logwarn, no fatal exception
  • Value in ~camera_params reflects what the camera actually applied

Not changed
~ptz_command, ~home_ptz and all robotnik_msgs interfaces untouched.

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.

1 participant