Home        Store        Docs        Blog

Camera and Light Control with Mavros


(Darrell Brandon Knape) #1

Hey Blue Robotics,

I am interested in controlling the lights and camera tilt of the BlueROV through mavros. I have the heavy addition of the BlueROV2 so my lights and camera servo are connected to the aux outputs of the BlueROV. I was thinking to use http://docs.ros.org/melodic/api/mavros_msgs/html/msg/ActuatorControl.html but I was not sure if Ardusub supported this. Also, I was not sure what group mix value I would use in the message or the range is acceptable in the controls list of the message.
I have been looking at this github link. https://github.com/patrickelectric/bluerov_ros_playground but there does not seem to be any implementation of what I am talking about. I was wondering if you guys have any idea about this or if this is possible right now.

Thanks,
Brandon


(Patrick José Pereira) #2

Hi Darrel,

The easier way to accomplish what are you looking for is to use the manual control topic to send camera tilt and light inputs.


(Darrell Brandon Knape) #3

Okay, but how do you do that because the message structure of the ManualControl message does not make it clear.

mavros_msgs/ManualControl

std_msgs/Header header
float32 x
float32 y
float32 z
float32 r
uint16 buttons

Or if you know where any documentation for this would be that would be helpful.

Thank you,
Brandon


(Jacob) #4

See here
https://mavlink.io/en/messages/common.html#MANUAL_CONTROL


(Darrell Brandon Knape) #5

Okay, thanks. according to that documentation in looks looks like it is for vehicle control. Is there a way to use that specifies light and camera control. Thank you.


(Patrick José Pereira) #6

Hi Darrel,

Check your vehicle configuration and the joystick button that is used to control the light, you can use this same button in MANUAL_CONTROL message. There is no message for light control.