This page documents the vision plugins in fp_perception_driver_vision.
Class: fp_perception::DefaultDriver
- Subscribes to a ROS image topic using
image_transport. - Stores the latest
sensor_msgs/msg/Imageand returnsvision_framefromcaptureFrame().
driver.vision.DefaultDriver.name(string)driver.vision.DefaultDriver.topic(string)
- Used when your camera feed already exists on a ROS topic.
- The perception server can optionally republish frames when
interface.vision_input.publish=true. - If
use_diagnostics=true, the driver publishes frame-receive status on/diagnosticsviadiagnostic_updater.
Class: fp_perception::OpenCVDriver
- Opens a camera device via OpenCV (
cv::VideoCapture). - Returns
vision_framefromcaptureFrame().
driver.vision.OpenCVDriver.name(string)driver.vision.OpenCVDriver.device_id(int)
- Used when you want the perception stack to acquire frames directly from a local camera device.
- The perception server publishes frames as
sensor_msgs/msg/Imagewheninterface.vision_input.publish=trueanduse_non_ros_vision_driver=true. - If
use_diagnostics=true, the driver publishes capture status on/diagnosticsviadiagnostic_updater.