Home
FAQ
Player
Utilities
Stage
Gazebo
Contrib
Documentation
Publications
Contributors
Users

Project
Download
Bugs/Feedback
Mailing lists

Radish

Old news
Old stuff

camera
[libgazebo]


Classes

struct  gz_camera_data
 Camera interface data. More...
struct  gz_camera
 The camera interface. More...

Defines

#define GAZEBO_CAMERA_MAX_IMAGE_SIZE   320 * 240 * 3
 Maximum image pixels (width x height).

Typedefs

typedef gz_camera_data gz_camera_data_t
 Camera interface data.
typedef gz_camera gz_camera_t
 The camera interface.

Functions

gz_camera_tgz_camera_alloc ()
 Create an interface.
void gz_camera_free (gz_camera_t *self)
 Destroy an interface.
int gz_camera_create (gz_camera_t *self, gz_server_t *server, const char *id, const char *model_type, int model_id, int parent_model_id)
int gz_camera_destroy (gz_camera_t *self)
int gz_camera_open (gz_camera_t *self, gz_client_t *client, const char *id)
 Open an existing interface (used by Gazebo clients).
int gz_camera_close (gz_camera_t *self)
 Close the interface (client).
int gz_camera_lock (gz_camera_t *self, int blocking)
void gz_camera_unlock (gz_camera_t *self)
 Unlock the interface.
int gz_camera_post (gz_camera_t *self)
 Tell clients that new data is available.

Detailed Description

The camera interface allows clients to read images from a simulated camera. This interface gives the view of the world as the camera would see it.

Images are in packed RGB888 format.


Define Documentation

#define GAZEBO_CAMERA_MAX_IMAGE_SIZE   320 * 240 * 3
 

Maximum image pixels (width x height).


Typedef Documentation

typedef struct gz_camera_data gz_camera_data_t
 

Camera interface data.

typedef struct gz_camera gz_camera_t
 

The camera interface.


Function Documentation

gz_camera_t* gz_camera_alloc  ) 
 

Create an interface.

void gz_camera_free gz_camera_t self  ) 
 

Destroy an interface.

int gz_camera_create gz_camera_t self,
gz_server_t server,
const char *  id,
const char *  model_type,
int  model_id,
int  parent_model_id
 

For internal use only.

Create the interface (used by Gazebo server)

int gz_camera_destroy gz_camera_t self  ) 
 

For internal use only.

Destroy the interface (server)

int gz_camera_open gz_camera_t self,
gz_client_t client,
const char *  id
 

Open an existing interface (used by Gazebo clients).

int gz_camera_close gz_camera_t self  ) 
 

Close the interface (client).

int gz_camera_lock gz_camera_t self,
int  blocking
 

Lock the interface. Set blocking to 1 if the caller should block until the lock is acquired. Returns 0 if the lock is acquired.

void gz_camera_unlock gz_camera_t self  ) 
 

Unlock the interface.

int gz_camera_post gz_camera_t self  ) 
 

Tell clients that new data is available.



Last updated $Date: 2004/12/21 01:49:15 $
Generated on Sun May 22 18:39:09 2005 for Gazebo by doxygen 1.4.2