Public Member Functions | |
def | __init__ |
def | default_getter_service_name |
def | default_setter_service_name |
def | getter_callback |
def | has_table |
def | interface_type |
def | setter_callback |
def | start_services |
Public Attributes | |
getter_service_class | |
getter_service_name | |
getter_service_proxy | |
getter_service_type | |
interface_name | |
interface_table | |
setter_service_class | |
setter_service_name | |
setter_service_proxy | |
setter_service_type | |
Static Public Attributes | |
tuple | engine = sqlalchemy.create_engine(_engine_name) |
engine_name = _engine_name | |
tuple | metadata = sqlalchemy.MetaData() |
Private Member Functions | |
def | _add_interface_description |
def | _generate_schema |
def | _get_last_modified |
def | _interface_table |
def | _set_timestamp |
Private Attributes | |
_getter_service | |
_setter_service | |
Static Private Attributes | |
__metaclass__ = ABCMeta |
Definition at line 22 of file abstract_db_interface.py.
def lama_interfaces.abstract_db_interface.AbstractDBInterface.__init__ | ( | self, | |
interface_name, | |||
getter_srv_type, | |||
setter_srv_type, | |||
start = False |
|||
) |
Build the map interface and possibly start ROS services Parameters ---------- - interface_name: string, name of the map interface. - getter_srv_type: string, service message to write into the map. - setter_srv_type: string, service message to read from the map. - start: {True|False}, defaults to True. The ROS services for getter and setter will be started only if start is True. If start is False, the clients proxies will be None.
Definition at line 31 of file abstract_db_interface.py.
def lama_interfaces.abstract_db_interface.AbstractDBInterface._add_interface_description | ( | self | ) | [private] |
Add the inteface description if not already existing Add the inteface description with unconflicting (interface_name / message_type / interface_type). A ValueError is raised if a table with the same name (i.e. same interface_name) but different message type and interface type already exists.
Definition at line 152 of file abstract_db_interface.py.
Definition at line 113 of file abstract_db_interface.py.
def lama_interfaces.abstract_db_interface.AbstractDBInterface._get_last_modified | ( | self | ) | [private] |
Return the date of last modification for this interface Return a rospy.Time instance.
Definition at line 199 of file abstract_db_interface.py.
def lama_interfaces.abstract_db_interface.AbstractDBInterface._interface_table | ( | self | ) | [private] |
Return the table for the type description (may already exists). Return a table with columns ('interface_name', 'message_type', interface_type, timestamp_secs, timestamp_nsecs). If the table already exists, it will be returned.
Definition at line 124 of file abstract_db_interface.py.
def lama_interfaces.abstract_db_interface.AbstractDBInterface._set_timestamp | ( | self, | |
time | |||
) | [private] |
Set the timestamp to the given time for this interface Parameters ---------- - time: a rospy.Time instance.
Definition at line 220 of file abstract_db_interface.py.
def lama_interfaces.abstract_db_interface.AbstractDBInterface.default_getter_service_name | ( | cls, | |
interface_name | |||
) |
Definition at line 101 of file abstract_db_interface.py.
def lama_interfaces.abstract_db_interface.AbstractDBInterface.default_setter_service_name | ( | cls, | |
interface_name | |||
) |
Definition at line 105 of file abstract_db_interface.py.
Definition at line 117 of file abstract_db_interface.py.
def lama_interfaces.abstract_db_interface.AbstractDBInterface.has_table | ( | self, | |
table | |||
) |
Return true if table is in the database
Definition at line 239 of file abstract_db_interface.py.
Definition at line 109 of file abstract_db_interface.py.
Definition at line 121 of file abstract_db_interface.py.
Definition at line 247 of file abstract_db_interface.py.
lama_interfaces::abstract_db_interface.AbstractDBInterface::__metaclass__ = ABCMeta [static, private] |
Definition at line 23 of file abstract_db_interface.py.
Definition at line 41 of file abstract_db_interface.py.
Definition at line 41 of file abstract_db_interface.py.
tuple lama_interfaces::abstract_db_interface.AbstractDBInterface::engine = sqlalchemy.create_engine(_engine_name) [static] |
Definition at line 27 of file abstract_db_interface.py.
Definition at line 26 of file abstract_db_interface.py.
Definition at line 41 of file abstract_db_interface.py.
Definition at line 41 of file abstract_db_interface.py.
Definition at line 41 of file abstract_db_interface.py.
Definition at line 41 of file abstract_db_interface.py.
Definition at line 41 of file abstract_db_interface.py.
Definition at line 41 of file abstract_db_interface.py.
tuple lama_interfaces::abstract_db_interface.AbstractDBInterface::metadata = sqlalchemy.MetaData() [static] |
Definition at line 28 of file abstract_db_interface.py.
Definition at line 41 of file abstract_db_interface.py.
Definition at line 41 of file abstract_db_interface.py.
Definition at line 41 of file abstract_db_interface.py.
Definition at line 41 of file abstract_db_interface.py.