#include <rosinljubljana.h>

Public Member Functions | |
| void | cameraCallback (const sensor_msgs::Image::ConstPtr &image) |
| void | enable (ros::NodeHandle) |
| void | publish () |
| void | setCamInfo () |
| void | subscribe (ros::NodeHandle) |
| WebotsCamera (ros::NodeHandle, image_transport::ImageTransport, std::string) | |
Public Member Functions inherited from Camera | |
| Camera () | |
| void | setFrames () |
| void | setName (std::string) |
| void | setPositionOrientation (tf::Vector3, tf::Quaternion) |
| void | transmitFrames () |
Public Attributes | |
| sensor_msgs::CameraInfo | cam_info |
| variable for storing camera info More... | |
| std::string | cameraNameinWebots |
| std::string | controllerNameinWebots |
| Names of controller and camera in webots. More... | |
| int | height |
| std::vector< float > | imageCamera |
| Vector for obtaining image from camera. More... | |
| image_transport::Publisher | pub |
| Publisher for image. More... | |
| ros::Publisher | pub_info |
| Publisher for camera info. More... | |
| ros::Subscriber | subCameraCamera |
| subscriber for camera image from webots More... | |
| int | width |
| Parameters of camera. More... | |
Public Attributes inherited from Camera | |
| tf::TransformBroadcaster | br |
| std::stringstream | frameCameraName |
| Name of camera frame. More... | |
| std::stringstream | imagePublisherName |
| Names of publishers. More... | |
| std::stringstream | infoPublisherName |
| std::string | name |
| Name of camera. More... | |
| tf::Transform | transformCamera |
| Transform and Broadcaster of camera frame. More... | |
WebotsCamera class for creating camera instance for webots simulation environment.
Contains methods for communication with webots simulation environment.
Definition at line 493 of file rosinljubljana.h.
| WebotsCamera::WebotsCamera | ( | ros::NodeHandle | nh, |
| image_transport::ImageTransport | imgt, | ||
| std::string | controllerName | ||
| ) |
Constructor for WebotsCamera
| nh | ros node nodehandle |
| imgt | image transport |
| controllerName | name of camera controller in webots |
Definition at line 737 of file rosinljubljana_objects.cpp.
| void WebotsCamera::cameraCallback | ( | const sensor_msgs::Image::ConstPtr & | image | ) |
Callback method for image subscriber
| &image | pointer to image msg |
Definition at line 807 of file rosinljubljana_objects.cpp.
| void WebotsCamera::enable | ( | ros::NodeHandle | nh | ) |
Enable camera
| nh | ros node nodeHandle |
Definition at line 818 of file rosinljubljana_objects.cpp.
| void WebotsCamera::publish | ( | ) |
Method for publishing image and camera info.
Definition at line 837 of file rosinljubljana_objects.cpp.
| void WebotsCamera::setCamInfo | ( | ) |
method for setting camera info params
Definition at line 772 of file rosinljubljana_objects.cpp.
| void WebotsCamera::subscribe | ( | ros::NodeHandle | nh | ) |
Subscriber method for image topic
| nh | ros node nodeHandle |
Definition at line 830 of file rosinljubljana_objects.cpp.
| sensor_msgs::CameraInfo WebotsCamera::cam_info |
variable for storing camera info
Definition at line 554 of file rosinljubljana.h.
| std::string WebotsCamera::cameraNameinWebots |
Definition at line 551 of file rosinljubljana.h.
| std::string WebotsCamera::controllerNameinWebots |
Names of controller and camera in webots.
Definition at line 550 of file rosinljubljana.h.
| int WebotsCamera::height |
Definition at line 538 of file rosinljubljana.h.
| std::vector<float> WebotsCamera::imageCamera |
Vector for obtaining image from camera.
Definition at line 544 of file rosinljubljana.h.
| image_transport::Publisher WebotsCamera::pub |
Publisher for image.
Definition at line 541 of file rosinljubljana.h.
| ros::Publisher WebotsCamera::pub_info |
Publisher for camera info.
Definition at line 547 of file rosinljubljana.h.
| ros::Subscriber WebotsCamera::subCameraCamera |
subscriber for camera image from webots
Definition at line 557 of file rosinljubljana.h.
| int WebotsCamera::width |
Parameters of camera.
Definition at line 537 of file rosinljubljana.h.