#include <HardwareCanSourceCanfile.h>
Public Types | |
typedef boost::shared_ptr< const HardwareCanSourceCanfile > | ConstPtr |
Const shared pointer shorthand. More... | |
typedef boost::shared_ptr< HardwareCanSourceCanfile > | Ptr |
Shared pointer shorthand. More... | |
Public Member Functions | |
virtual CanMessageStamped::Ptr | get () const |
virtual bool | isSeekable () const |
This source works on CAN files and is therefore seekable. More... | |
Static Public Member Functions | |
static icl_sourcesink::URISchemeMap | supportedURISchemes () |
URI schemes supported by this source. More... | |
Protected Member Functions | |
virtual bool | advance () |
Implementation of DataSourceBase::advance(). More... | |
HardwareCanSourceCanfile (const std::string &uri, const std::string &name="HardwareCanSourceCanfile") | |
void | prepareFile () |
virtual bool | seekImpl (const icl_sourcesink::InternalIndex internal_index) |
Implementation of DataSourceBase::seekImpl(). More... | |
Private Attributes | |
CanMessageStamped::Ptr | m_buffer |
Buffers the current data element. More... | |
CanFileResolutionHelper::Ptr | m_resolution_helper |
Our own resolution helper. More... | |
icl_sourcesink::KeyframePositionResolver::Ptr | m_resolver_x |
std::size_t | m_sequence_number |
Ever-increasing sequence number. More... | |
Friends | |
class | icl_sourcesink::DataSourceFactory< HardwareCanSourceCanfile > |
Provide access for the factory. More... | |
class | icl_sourcesink::SourceSinkManager |
Provide access for the manager. More... | |
This Source reads a given file and offers the possibility to return tCanMessage. Messages will be returned by calling GetNextMessage(). Call Seek() to jump to a specific part of the file.
The FZI CAN file format (version 1.0) is structured as follows: gmtime msg_id dlc data[0] data[1] data[2] data[3] data[4] data[5] data[6] data[7] An example line is given below: 1314957629.419675 55 8 0 0 0 0 1b f5 21 7a The message block time and position is stored in an additional XML file.
Definition at line 56 of file HardwareCanSourceCanfile.h.
typedef boost::shared_ptr<const HardwareCanSourceCanfile> icl_hardware::can::HardwareCanSourceCanfile::ConstPtr |
Const shared pointer shorthand.
Definition at line 62 of file HardwareCanSourceCanfile.h.
typedef boost::shared_ptr<HardwareCanSourceCanfile> icl_hardware::can::HardwareCanSourceCanfile::Ptr |
Shared pointer shorthand.
Definition at line 60 of file HardwareCanSourceCanfile.h.
|
protected |
Definition at line 36 of file HardwareCanSourceCanfile.cpp.
|
protectedvirtual |
Implementation of DataSourceBase::advance().
Definition at line 149 of file HardwareCanSourceCanfile.cpp.
|
inlinevirtual |
Definition at line 79 of file HardwareCanSourceCanfile.h.
|
inlinevirtual |
This source works on CAN files and is therefore seekable.
Definition at line 85 of file HardwareCanSourceCanfile.h.
|
protected |
Definition at line 56 of file HardwareCanSourceCanfile.cpp.
|
protectedvirtual |
Implementation of DataSourceBase::seekImpl().
Definition at line 119 of file HardwareCanSourceCanfile.cpp.
|
inlinestatic |
URI schemes supported by this source.
Definition at line 65 of file HardwareCanSourceCanfile.h.
|
friend |
Provide access for the factory.
Definition at line 100 of file HardwareCanSourceCanfile.h.
|
friend |
Provide access for the manager.
Definition at line 97 of file HardwareCanSourceCanfile.h.
|
private |
Buffers the current data element.
Definition at line 110 of file HardwareCanSourceCanfile.h.
|
private |
Our own resolution helper.
Definition at line 118 of file HardwareCanSourceCanfile.h.
|
private |
Shared pointer to the actual resolver type, to avoid repeated dynamic casting.
Definition at line 115 of file HardwareCanSourceCanfile.h.
|
private |
Ever-increasing sequence number.
Definition at line 121 of file HardwareCanSourceCanfile.h.