Public Member Functions | Public Attributes | List of all members
WebotsCamera Class Reference

#include <rosinljubljana.h>

Inheritance diagram for WebotsCamera:
Inheritance graph
[legend]

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ WebotsCamera()

WebotsCamera::WebotsCamera ( ros::NodeHandle  nh,
image_transport::ImageTransport  imgt,
std::string  controllerName 
)

Constructor for WebotsCamera

Parameters
nhros node nodehandle
imgtimage transport
controllerNamename of camera controller in webots

Definition at line 737 of file rosinljubljana_objects.cpp.

Member Function Documentation

◆ cameraCallback()

void WebotsCamera::cameraCallback ( const sensor_msgs::Image::ConstPtr &  image)

Callback method for image subscriber

Parameters
&imagepointer to image msg

Definition at line 807 of file rosinljubljana_objects.cpp.

◆ enable()

void WebotsCamera::enable ( ros::NodeHandle  nh)

Enable camera

Parameters
nhros node nodeHandle

Definition at line 818 of file rosinljubljana_objects.cpp.

◆ publish()

void WebotsCamera::publish ( )

Method for publishing image and camera info.

Definition at line 837 of file rosinljubljana_objects.cpp.

◆ setCamInfo()

void WebotsCamera::setCamInfo ( )

method for setting camera info params

Definition at line 772 of file rosinljubljana_objects.cpp.

◆ subscribe()

void WebotsCamera::subscribe ( ros::NodeHandle  nh)

Subscriber method for image topic

Parameters
nhros node nodeHandle

Definition at line 830 of file rosinljubljana_objects.cpp.

Member Data Documentation

◆ cam_info

sensor_msgs::CameraInfo WebotsCamera::cam_info

variable for storing camera info

Definition at line 554 of file rosinljubljana.h.

◆ cameraNameinWebots

std::string WebotsCamera::cameraNameinWebots

Definition at line 551 of file rosinljubljana.h.

◆ controllerNameinWebots

std::string WebotsCamera::controllerNameinWebots

Names of controller and camera in webots.

Definition at line 550 of file rosinljubljana.h.

◆ height

int WebotsCamera::height

Definition at line 538 of file rosinljubljana.h.

◆ imageCamera

std::vector<float> WebotsCamera::imageCamera

Vector for obtaining image from camera.

Definition at line 544 of file rosinljubljana.h.

◆ pub

image_transport::Publisher WebotsCamera::pub

Publisher for image.

Definition at line 541 of file rosinljubljana.h.

◆ pub_info

ros::Publisher WebotsCamera::pub_info

Publisher for camera info.

Definition at line 547 of file rosinljubljana.h.

◆ subCameraCamera

ros::Subscriber WebotsCamera::subCameraCamera

subscriber for camera image from webots

Definition at line 557 of file rosinljubljana.h.

◆ width

int WebotsCamera::width

Parameters of camera.

Definition at line 537 of file rosinljubljana.h.


The documentation for this class was generated from the following files:


rosinljubljana
Author(s): Igor Banfi
autogenerated on Mon Feb 24 2020 12:32:36