osgar package¶
Subpackages¶
- osgar.drivers package
- Submodules
- osgar.drivers.canserial module
- osgar.drivers.eduro module
- osgar.drivers.gps module
- osgar.drivers.imu module
- osgar.drivers.logserial module
- osgar.drivers.logsocket module
- osgar.drivers.sicklidar module
- osgar.drivers.simulator module
- osgar.drivers.spider module
- osgar.drivers.test_canserial module
- osgar.drivers.test_eduro module
- osgar.drivers.test_gps module
- osgar.drivers.test_imu module
- osgar.drivers.test_logserial module
- osgar.drivers.test_logsocket module
- osgar.drivers.test_sicklidar module
- osgar.drivers.test_simulator module
- osgar.drivers.test_spider module
- Module contents
- osgar.lib package
Submodules¶
osgar.bus module¶
Internal bus for communication among modules
-
class
osgar.bus.
BusHandler
(logger, name='', out={})¶ Bases:
object
-
is_alive
()¶
-
listen
()¶
-
publish
(channel, data)¶
-
report_error
(err)¶
-
shutdown
()¶
-
sleep
(secs)¶
-
-
exception
osgar.bus.
BusShutdownException
¶ Bases:
Exception
osgar.logger module¶
-
class
osgar.logger.
LogAsserter
(filename)¶ Bases:
osgar.logger.LogReader
-
write
(stream_id, data)¶
-
-
class
osgar.logger.
LogReader
(filename)¶ Bases:
object
-
close
()¶
-
read_gen
(only_stream_id=None)¶ packed generator - yields (time, stream, data)
-
-
class
osgar.logger.
LogWriter
(prefix='naio', note='')¶ Bases:
object
-
close
()¶
-
register
(name)¶
-
write
(stream_id, data)¶
-
-
osgar.logger.
lookup_stream_id
(filename, stream_name)¶
-
osgar.logger.
lookup_stream_names
(filename)¶
osgar.replay module¶
Replay driver modules from log file
-
osgar.replay.
replay
(args, application=None)¶
osgar.ro2018 module¶
RoboOrienteering 2018 - experiments with osgar.logger and robot container
-
exception
osgar.ro2018.
EmergencyStopException
¶ Bases:
Exception
-
class
osgar.ro2018.
RoboOrienteering2018
(config, bus)¶ Bases:
object
-
EMERGENCY_STOP
= 1¶
-
join
()¶
-
play
()¶
-
play0
()¶
-
register
(callback)¶
-
request_stop
()¶
-
set_speed
(desired_speed, desired_wheel_heading)¶
-
start
()¶
-
unregister
(callback)¶
-
update
()¶
-
wait
(dt)¶
-
-
osgar.ro2018.
geo_angle
(pos1, pos2)¶
-
osgar.ro2018.
geo_length
(pos1, pos2)¶ return distance on sphere for two integer positions in milliseconds
-
osgar.ro2018.
latlon2xy
(lat, lon)¶
osgar.robot module¶
Robot - container for drivers
osgar.test_bus module¶
-
class
osgar.test_bus.
BusHandlerTest
(methodName='runTest')¶ Bases:
unittest.case.TestCase
-
test_alive
()¶
-
test_bus_sleep
()¶
-
test_listen
()¶
-
test_log_bus_handler
()¶
-
test_log_bus_handler_inputs_onlye
()¶
-
test_named_publish
()¶
-
test_publish
()¶
-
test_publish_serialization
()¶
-
test_publish_time
()¶
-
test_report_error
()¶
-
test_shutdown
()¶
-
test_two_modules
()¶
-
test_wrong_publish_channel
()¶
-