Skip to content

Commit

Permalink
Add: Area zoom ROS service for Q62 PTZ camera
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Phillips <[email protected]>
  • Loading branch information
stephen-cpr committed Jul 15, 2024
1 parent 10ce7b9 commit d90e5d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ find_package(catkin REQUIRED
# FILES
#)

add_service_files(
FILES
q62AreaZoom.srv
)


## Add actions
add_action_files(
DIRECTORY
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Service definition to re-position a pan-tilt-zoom camera to a specific location with a specified zoom
# Used primarily for box-zoom like functionality

float32 x # X location to move camera to, expressed as a fraction of image dimension (0 to 1, where 0.5 is current center)
float32 y # Y location to move camera to, expressed as a fraction of image dimension (0 to 1, where 0.5 is current center)
float32 zoom_factor
---
bool success
string message

0 comments on commit d90e5d1

Please sign in to comment.