# rtsp_camera_ros_driver **Repository Path**: xlhou/rtsp_camera_ros_driver ## Basic Information - **Project Name**: rtsp_camera_ros_driver - **Description**: ROS driver node for RTSP cameras - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: indigo-devel - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2024-11-15 - **Last Updated**: 2024-11-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # rtsp_ros_driver This ROS package contains a driver node that reads frames from an RTSP video stream (e.g., IP Camera) and publishes them out as [sensor_msgs/Image](http://docs.ros.org/api/sensor_msgs/html/msg/Image.html) ROS messages. # Configuration `rtsp_ros_driver` implements the ROS [camera_info_manager](http://wiki.ros.org/camera_info_manager_py) interface. This means that the driver node can seamlessly handle camera calibration files. `rtsp_ros_driver` stores camera calibration files in the directory `$ROS_HOME/camera_info/`. Export the environment variable `$ROS_HOME` to point to your `catkin_ws` directory. ``` export ROS_HOME= ``` # Tutorial You can launch the `rtsp_ros_driver` main node by running: ``` roslaunch rtsp_ros_driver rtsp_camera.launch ``` # Launch files ## rtsp_camera.launch Launches the main node of the package (i.e., `rtsp_driver_node`). Unlike the `rtsp_driver_node` node, this launch file allows us to specify hostname, username, password, and other parameters about the camera separately. These parameters will be combined into a standard URL format and sent to the `rtsp_driver_node` node. ### Subscribed topics None. ### Published topics Identical to the `rtsp_driver_node` node (see below). ### Arguments #### Mandatory arguments _hostname_    (`string`)
         Hostname or IP of the RTSP camera.
_username_    (`string`)
         Username for the RTSP camera.
_password_    (`string`)
         Password for the RTSP camera.
_stream_    (`string`)
         Name of the video stream published by the RTSP camera.
#### Optional arguments _camera\_name_    (`string`, default: _rtsp\_camera_)
         Namespace of the camera.
_camera\_frame_    (`string`, default: _rtsp\_camera\_link_)
         Name of the camera reference frame.
_image\_raw\_topic_    (`string`, default: _~image\_raw_)
         Name of the output image topic.
_camera\_info\_topic_    (`string`, default: _~camera\_info_)
         Name of the output camera info topic.
_port_    (`int`, default: _554_)
         Port of the RTSP camera.
# Nodes ## rtsp_driver_node Main node of the package, it is responsible for reading frames from the given RTSP video stream source and publishing them out as [sensor_msgs/Image](http://docs.ros.org/api/sensor_msgs/html/msg/Image.html) ROS messages. ### Subscribed topics None. ### Published topics _//_    ([sensor_msgs/Image](http://docs.ros.org/api/sensor_msgs/html/msg/Image.html))
         Raw image stream from the camera.
_//_    ([sensor_msgs/CameraInfo](http://docs.ros.org/api/sensor_msgs/html/msg/CameraInfo.html))
         Camera metadata.
### Parameters #### Mandatory parameters ~_rtsp\_resource_    (`string`)
         RTSP URL to the camera string.
#### Optional parameters ~_camera\_name_    (`string`, default: _rtsp\_camera_)
         Namespace of the camera.
~_camera\_frame_    (`string`, default: _rtsp\_camera\_link_)
         Name of the camera reference frame.
~_image\_raw\_topic_    (`string`, default: _~image\_raw_)
         Name of the output image topic.
~_camera\_info\_topic_    (`string`, default: _~camera\_info_)
         Name of the output camera info topic.