Main Page
Namespaces
Classes
Files
File List
src
rosbridge_library
internal
outgoing_message.py
Go to the documentation of this file.
1
from
rosbridge_library.internal.message_conversion
import
extract_values
as
extract_json_values
2
from
rosbridge_library.internal.cbor_conversion
import
extract_cbor_values
3
4
5
class
OutgoingMessage
:
6
"""A message wrapper for caching encoding operations."""
7
def
__init__
(self, message):
8
self.
_message
= message
9
self.
_json_values
=
None
10
self.
_cbor_values
=
None
11
12
@property
13
def
message
(self):
14
return
self.
_message
15
16
def
get_json_values
(self):
17
if
self.
_json_values
is
None
:
18
self.
_json_values
= extract_json_values(self.
_message
)
19
return
self.
_json_values
20
21
def
get_cbor_values
(self):
22
if
self.
_cbor_values
is
None
:
23
self.
_cbor_values
=
extract_cbor_values
(self.
_message
)
24
return
self.
_cbor_values
rosbridge_library.internal.cbor_conversion
Definition:
cbor_conversion.py:1
rosbridge_library.internal.message_conversion
Definition:
message_conversion.py:1
rosbridge_library.internal.outgoing_message.OutgoingMessage._json_values
_json_values
Definition:
outgoing_message.py:9
rosbridge_library.internal.outgoing_message.OutgoingMessage._message
_message
Definition:
outgoing_message.py:8
rosbridge_library.internal.cbor_conversion.extract_cbor_values
def extract_cbor_values(msg)
Definition:
cbor_conversion.py:37
rosbridge_library.internal.outgoing_message.OutgoingMessage
Definition:
outgoing_message.py:5
rosbridge_library.internal.outgoing_message.OutgoingMessage.get_json_values
def get_json_values(self)
Definition:
outgoing_message.py:16
rosbridge_library.internal.outgoing_message.OutgoingMessage.message
def message(self)
Definition:
outgoing_message.py:13
rosbridge_library.internal.outgoing_message.OutgoingMessage._cbor_values
_cbor_values
Definition:
outgoing_message.py:10
rosbridge_library.internal.outgoing_message.OutgoingMessage.get_cbor_values
def get_cbor_values(self)
Definition:
outgoing_message.py:21
rosbridge_library.internal.outgoing_message.OutgoingMessage.__init__
def __init__(self, message)
Definition:
outgoing_message.py:7
rosbridge_library
Author(s): Jonathan Mace
autogenerated on Wed Jun 3 2020 03:55:14