Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
WGE100Simulator Class Reference

List of all members.

Public Member Functions

int run ()
 WGE100Simulator (uint32_t serial)
 ~WGE100Simulator ()

Private Member Functions

void ProcessCommands ()
void reset ()
void sendAnnounce (PacketGeneric *hdr)
void SendData ()
void sendFlashData (PacketGeneric *hdr, uint32_t address)
void sendSensorData (PacketGeneric *hdr, uint8_t addr, uint16_t value)
void sendStatus (PacketGeneric *hdr, uint32_t type, uint32_t code)

Static Private Member Functions

static uint8_t get_diag_test_pattern (int x, int y)
static void setExiting (int i)

Private Attributes

sockaddr_in data_addr_
int frame_
int height_
uint8_t imager_register_flags_ [NUM_IMAGER_REGISTERS]
uint16_t imager_registers_ [NUM_IMAGER_REGISTERS]
ros::Time next_frame_time_
int running_
uint32_t serial_no_
int socket_
int width_

Static Private Attributes

static volatile bool exiting_ = false
static const int IMAGER_REGISTER_UNDEFINED = 1
static const int IMAGER_REGISTER_UNSUPPORTED = 2
static const int NUM_IMAGER_REGISTERS = 256

Detailed Description

Definition at line 57 of file wge100_sim.cc.


Constructor & Destructor Documentation

WGE100Simulator::WGE100Simulator ( uint32_t  serial) [inline]

Definition at line 60 of file wge100_sim.cc.

Definition at line 89 of file wge100_sim.cc.


Member Function Documentation

static uint8_t WGE100Simulator::get_diag_test_pattern ( int  x,
int  y 
) [inline, static, private]

Definition at line 138 of file wge100_sim.cc.

void WGE100Simulator::ProcessCommands ( ) [inline, private]

Definition at line 226 of file wge100_sim.cc.

void WGE100Simulator::reset ( ) [inline, private]

Definition at line 111 of file wge100_sim.cc.

int WGE100Simulator::run ( ) [inline]

Definition at line 75 of file wge100_sim.cc.

void WGE100Simulator::sendAnnounce ( PacketGeneric hdr) [inline, private]

Definition at line 421 of file wge100_sim.cc.

void WGE100Simulator::SendData ( ) [inline, private]

Definition at line 146 of file wge100_sim.cc.

void WGE100Simulator::sendFlashData ( PacketGeneric hdr,
uint32_t  address 
) [inline, private]

Definition at line 444 of file wge100_sim.cc.

void WGE100Simulator::sendSensorData ( PacketGeneric hdr,
uint8_t  addr,
uint16_t  value 
) [inline, private]

Definition at line 452 of file wge100_sim.cc.

void WGE100Simulator::sendStatus ( PacketGeneric hdr,
uint32_t  type,
uint32_t  code 
) [inline, private]

Definition at line 434 of file wge100_sim.cc.

static void WGE100Simulator::setExiting ( int  i) [inline, static, private]

Definition at line 464 of file wge100_sim.cc.


Member Data Documentation

sockaddr_in WGE100Simulator::data_addr_ [private]

Definition at line 104 of file wge100_sim.cc.

volatile bool WGE100Simulator::exiting_ = false [static, private]

Definition at line 462 of file wge100_sim.cc.

int WGE100Simulator::frame_ [private]

Definition at line 101 of file wge100_sim.cc.

int WGE100Simulator::height_ [private]

Definition at line 100 of file wge100_sim.cc.

Definition at line 109 of file wge100_sim.cc.

const int WGE100Simulator::IMAGER_REGISTER_UNDEFINED = 1 [static, private]

Definition at line 106 of file wge100_sim.cc.

const int WGE100Simulator::IMAGER_REGISTER_UNSUPPORTED = 2 [static, private]

Definition at line 107 of file wge100_sim.cc.

Definition at line 108 of file wge100_sim.cc.

Definition at line 103 of file wge100_sim.cc.

const int WGE100Simulator::NUM_IMAGER_REGISTERS = 256 [static, private]

Definition at line 105 of file wge100_sim.cc.

Definition at line 98 of file wge100_sim.cc.

uint32_t WGE100Simulator::serial_no_ [private]

Definition at line 96 of file wge100_sim.cc.

int WGE100Simulator::socket_ [private]

Definition at line 97 of file wge100_sim.cc.

int WGE100Simulator::width_ [private]

Definition at line 99 of file wge100_sim.cc.


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


wge100_camera
Author(s): Blaise Gassend, Patrick Mihelich, Eric MacIntosh, David Palchak
autogenerated on Fri Jan 3 2014 12:16:01