INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         
gbxsmartbatteryacfr/exceptions.h
1 /*
2  * GearBox Project: Peer-Reviewed Open-Source Libraries for Robotics
3  * http://gearbox.sf.net/
4  * Copyright (c) 2004-2010 Tobias Kaupp
5  *
6  * This distribution is licensed to you under the terms described in
7  * the LICENSE file included in this distribution.
8  *
9  */
10 
11 #ifndef GBX_SMARTBATTERYACFR_EXCEPTIONS_H
12 #define GBX_SMARTBATTERYACFR_EXCEPTIONS_H
13 
14 #include <gbxutilacfr/exceptions.h>
15 
17 
20 {
21  public:
22  HardwareReadingException( const char *file, const char *line, const char *message )
23  : Exception( file, line, message ) {}
24 };
25 
28 {
29  public:
30  ParsingException( const char *file, const char *line, const char *message )
31  : Exception( file, line, message ) {}
32 };
33 
34 }
35 
36 #endif
37 
void set_motor_speed(unsigned int speed)
Set the speed at which the scanner's sensor spins.
Definition: sensor.cpp:591
void set_baud(unsigned int baud)
Change the baud rate when using a serial connection.
Definition: sensor.cpp:489
Baudrate error class.
Definition: hokuyo_errors.h:147
std::string as_string()
Format the entire object into a string.
Definition: scan_data.cpp:283
void set_power(bool on)
Switch the laser scanner on or off.
Definition: sensor.cpp:444
void open(std::string port_options)
Open the laser scanner and begin scanning.
Definition: sensor.cpp:307
std::string as_string()
Format the entire object into a string.
Definition: sensor_info.cpp:131
Base class for all GbxUtilAcfr exceptions.
Definition: gbxutilacfr/exceptions.h:66
float skew_alpha() const
Get the calculated skew line slope (default: 0).
Definition: sensor.h:266
void close()
Close the connection to the laser scanner.
Definition: sensor.cpp:425
unsigned int get_new_ranges_intensities_by_angle(ScanData &data, double start_angle, double end_angle, unsigned int cluster_count=1)
Get a new scan from the scanner with intensity data.
Definition: sensor.cpp:1319
unsigned int get_new_ranges(ScanData &data, int start_step=-1, int end_step=-1, unsigned int cluster_count=1)
Get a new scan from the scanner.
Definition: sensor.cpp:1117
long long time_offset() const
Retrieve the calculated time offset (0 if not calibrated).
Definition: sensor.h:240
void set_multiecho_mode(MultiechoMode mode)
Set the multi-echo mode to use. Default is ME_OFF.
Definition: sensor.h:481
unsigned int get_ranges(ScanData &data, int start_step=-1, int end_step=-1, unsigned int cluster_count=1)
Get the latest scan data from the scanner.
Definition: sensor.cpp:954
General error class.
Definition: hokuyo_errors.h:57
Exception for parsing problems.
Definition: gbxsmartbatteryacfr/exceptions.h:28
Structure to store data returned from the laser scanner.
Definition: scan_data.h:53
Exception for hardware reading problems.
Definition: gbxsmartbatteryacfr/exceptions.h:20
long long calibrate_time(unsigned int skew_sleep_time=0, unsigned int samples=10)
Calibrate the time offset between the laser and computer.
Definition: sensor.cpp:860
ACFR utilities.
Definition: gbxnovatelacfr/driver.h:24
void set_verbose(bool verbose)
Turns on and off printing of verbose operating information to stderr. Default is off.
Definition: sensor.h:474
unsigned int get_new_ranges_by_angle(ScanData &data, double start_angle, double end_angle, unsigned int cluster_count=1)
Get a new scan from the scanner.
Definition: sensor.cpp:1203
Bad response error - may be sent in response to any command.
Definition: hokuyo_errors.h:450
Invalid motor speed error class.
Definition: hokuyo_errors.h:292
float drift_rate() const
Retrieve the current clock drift rate (0 if not set).
Definition: sensor.h:246
Hokuyo laser scanner class.
Definition: sensor.h:122
SmartBattery library.
Definition: gbxsmartbatteryacfr/exceptions.h:16
Sensor information.
Definition: sensor_info.h:128
unsigned int get_new_ranges_intensities(ScanData &data, int start_step=-1, int end_step=-1, unsigned int cluster_count=1)
Get a new scan from the scanner with intensity data.
Definition: sensor.cpp:1232
void get_sensor_info(SensorInfo &info)
Get various information about the scanner.
Definition: sensor.cpp:669
unsigned int get_ranges_by_angle(ScanData &data, double start_angle, double end_angle, unsigned int cluster_count=1)
Get the latest scan data from the scanner.
Definition: sensor.cpp:1015
 

Generated for GearBox by  doxygen 1.4.5