Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
web-ros3rag
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
web-ros3rag
Commits
22ead654
Commit
22ead654
authored
3 years ago
by
René Schöne
Browse files
Options
Downloads
Patches
Plain Diff
now with actually updated protobuf
parent
ccd9be7e
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
cgv_connector.proto
+15
-1
15 additions, 1 deletion
cgv_connector.proto
cgv_connector_pb2.py
+91
-31
91 additions, 31 deletions
cgv_connector_pb2.py
utils.py
+1
-1
1 addition, 1 deletion
utils.py
with
107 additions
and
33 deletions
cgv_connector.proto
+
15
−
1
View file @
22ead654
...
@@ -42,6 +42,19 @@ message Object {
...
@@ -42,6 +42,19 @@ message Object {
ROBOT
=
6
;
ROBOT
=
6
;
COLLABORATION_ZONE
=
7
;
COLLABORATION_ZONE
=
7
;
}
}
enum
State
{
STATE_UNKNOWN
=
0
;
// robot states
STATE_IDLE
=
101
;
STATE_PICKING
=
102
;
STATE_PLACING
=
103
;
STATE_MOVING
=
104
;
// object
STATE_STATIONARY
=
200
;
STATE_PICKED
=
201
;
}
string
id
=
1
;
string
id
=
1
;
Type
type
=
2
;
Type
type
=
2
;
...
@@ -49,7 +62,8 @@ message Object {
...
@@ -49,7 +62,8 @@ message Object {
Size
size
=
4
;
Size
size
=
4
;
Orientation
orientation
=
5
;
Orientation
orientation
=
5
;
Color
color
=
6
;
Color
color
=
6
;
bool
active
=
7
;
State
state
=
7
;
string
owner
=
8
;
}
}
// the scene is stored within the ROS side and sent to clients
// the scene is stored within the ROS side and sent to clients
...
...
This diff is collapsed.
Click to expand it.
cgv_connector_pb2.py
+
91
−
31
View file @
22ead654
...
@@ -19,7 +19,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
...
@@ -19,7 +19,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
syntax
=
'
proto3
'
,
syntax
=
'
proto3
'
,
serialized_options
=
b
'
\n\030
de.tudresden.inf.st.cetiP
\001
'
,
serialized_options
=
b
'
\n\030
de.tudresden.inf.st.cetiP
\001
'
,
create_key
=
_descriptor
.
_internal_create_key
,
create_key
=
_descriptor
.
_internal_create_key
,
serialized_pb
=
b
'
\n\x13\x63
gv_connector.proto
\"\x
81
\x0
4
\n\x06
Object
\x12\n\n\x02
id
\x18\x01
\x01
(
\t\x12\x1a\n\x04
type
\x18\x02
\x01
(
\x0e\x32\x0c
.Object.Type
\x12\x1d\n\x03
pos
\x18\x03
\x01
(
\x0b\x32\x10
.Object.Position
\x12\x1a\n\x04
size
\x18\x04
\x01
(
\x0b\x32\x0c
.Object.Size
\x12
(
\n\x0b
orientation
\x18\x05
\x01
(
\x0b\x32\x13
.Object.Orientation
\x12\x1c\n\x05\x63
olor
\x18\x06
\x01
(
\x0b\x32\r
.Object.Color
\x12\x
0e\n\x06\x61\x63
tive
\x18\x0
7
\x01
(
\
x08
\x1a
+
\n\x08
Position
\x12\t\n\x01
x
\x18\x01
\x01
(
\x01\x12\t\n\x01
y
\x18\x02
\x01
(
\x01\x12\t\n\x01
z
\x18\x03
\x01
(
\x01\x1a\x35\n\x04
Size
\x12\x0e\n\x06
length
\x18\x01
\x01
(
\x01\x12\r\n\x05
width
\x18\x02
\x01
(
\x01\x12\x0e\n\x06
height
\x18\x03
\x01
(
\x01\x1a\x39\n\x0b
Orientation
\x12\t\n\x01
x
\x18\x01
\x01
(
\x01\x12\t\n\x01
y
\x18\x02
\x01
(
\x01\x12\t\n\x01
z
\x18\x03
\x01
(
\x01\x12\t\n\x01
w
\x18\x04
\x01
(
\x01\x1a
(
\n\x05\x43
olor
\x12\t\n\x01
r
\x18\x01
\x01
(
\x02\x12\t\n\x01
g
\x18\x02
\x01
(
\x02\x12\t\n\x01\x62\x18\x03
\x01
(
\x02\"
s
\n\x04
Type
\x12\x0b\n\x07
UNKNOWN
\x10\x00\x12\x07\n\x03\x42
OX
\x10\x01\x12\x07\n\x03\x42
IN
\x10\x02\x12\x07\n\x03\x41
RM
\x10\x03\x12\x15\n\x11\x44
ROP_OFF_LOCATION
\x10\x04\x12\t\n\x05
HUMAN
\x10\x05\x12\t\n\x05
ROBOT
\x10\x06\x12\x16\n\x12\x43
OLLABORATION_ZONE
\x10\x07\"
!
\n\x05
Scene
\x12\x18\n\x07
objects
\x18\x01
\x03
(
\x0b\x32\x07
.Object
\"\x17\n\t
Selection
\x12\n\n\x02
id
\x18\x01
\x01
(
\t\"
}
\n\x07\x43
ommand
\x12
%
\n\x0c
pickAndPlace
\x18\x01
\x01
(
\x0b\x32\r
.PickAndPlaceH
\x00\x12
%
\n\x0c\x63
onfigChange
\x18\x02
\x01
(
\x0b\x32\r
.ConfigChangeH
\x00\x12\x1d\n\x08\x65
vacuate
\x18\x03
\x01
(
\x0b\x32\t
.EvacuateH
\x00\x42\x05\n\x03
msg
\"
@
\n\x0c
PickAndPlace
\x12\x0f\n\x07
idRobot
\x18\x01
\x01
(
\t\x12\x0e\n\x06
idPick
\x18\x02
\x01
(
\t\x12\x0f\n\x07
idPlace
\x18\x03
\x01
(
\t\"
D
\n\x0c\x43
onfigChange
\x12\x1b\n\x13
idCollaborationZone
\x18\x01
\x01
(
\t\x12\x17\n\x0f
idRobotNewOwner
\x18\x02
\x01
(
\t\"
8
\n\x08\x45
vacuate
\x12\x0f\n\x07
idRobot
\x18\x01
\x01
(
\t\x12\x1b\n\x13
idCollaborationZone
\x18\x02
\x01
(
\t\"\x8d\x01\n\x0c
Reachability
\x12\x0f\n\x07
idRobot
\x18\x01
\x01
(
\t\x12\x31\n\x07
objects
\x18\x02
\x03
(
\x0b\x32
.Reachability.ObjectReachability
\x1a\x39\n\x12
ObjectReachability
\x12\x10\n\x08
idObject
\x18\x01
\x01
(
\t\x12\x11\n\t
reachable
\x18\x02
\x01
(
\x08\x42\x1c\n\x18\x64\x65
.tudresden.inf.st.cetiP
\x01\x62\x06
proto3
'
serialized_pb
=
b
'
\n\x13\x63
gv_connector.proto
\"\x
ad
\x0
5
\n\x06
Object
\x12\n\n\x02
id
\x18\x01
\x01
(
\t\x12\x1a\n\x04
type
\x18\x02
\x01
(
\x0e\x32\x0c
.Object.Type
\x12\x1d\n\x03
pos
\x18\x03
\x01
(
\x0b\x32\x10
.Object.Position
\x12\x1a\n\x04
size
\x18\x04
\x01
(
\x0b\x32\x0c
.Object.Size
\x12
(
\n\x0b
orientation
\x18\x05
\x01
(
\x0b\x32\x13
.Object.Orientation
\x12\x1c\n\x05\x63
olor
\x18\x06
\x01
(
\x0b\x32\r
.Object.Color
\x12\x
1c\n\x05
state
\x18\x07
\x01
(
\x0e\x32\r
.Object.State
\x12\r\n\x05
owner
\x18\x0
8
\x01
(
\
t
\x1a
+
\n\x08
Position
\x12\t\n\x01
x
\x18\x01
\x01
(
\x01\x12\t\n\x01
y
\x18\x02
\x01
(
\x01\x12\t\n\x01
z
\x18\x03
\x01
(
\x01\x1a\x35\n\x04
Size
\x12\x0e\n\x06
length
\x18\x01
\x01
(
\x01\x12\r\n\x05
width
\x18\x02
\x01
(
\x01\x12\x0e\n\x06
height
\x18\x03
\x01
(
\x01\x1a\x39\n\x0b
Orientation
\x12\t\n\x01
x
\x18\x01
\x01
(
\x01\x12\t\n\x01
y
\x18\x02
\x01
(
\x01\x12\t\n\x01
z
\x18\x03
\x01
(
\x01\x12\t\n\x01
w
\x18\x04
\x01
(
\x01\x1a
(
\n\x05\x43
olor
\x12\t\n\x01
r
\x18\x01
\x01
(
\x02\x12\t\n\x01
g
\x18\x02
\x01
(
\x02\x12\t\n\x01\x62\x18\x03
\x01
(
\x02\"
s
\n\x04
Type
\x12\x0b\n\x07
UNKNOWN
\x10\x00\x12\x07\n\x03\x42
OX
\x10\x01\x12\x07\n\x03\x42
IN
\x10\x02\x12\x07\n\x03\x41
RM
\x10\x03\x12\x15\n\x11\x44
ROP_OFF_LOCATION
\x10\x04\x12\t\n\x05
HUMAN
\x10\x05\x12\t\n\x05
ROBOT
\x10\x06\x12\x16\n\x12\x43
OLLABORATION_ZONE
\x10\x07\"
\x8c\x01\n\x05
State
\x12\x11\n\r
STATE_UNKNOWN
\x10\x00\x12\x0e\n\n
STATE_IDLE
\x10\x65\x12\x11\n\r
STATE_PICKING
\x10\x66\x12\x11\n\r
STATE_PLACING
\x10
g
\x12\x10\n\x0c
STATE_MOVING
\x10
h
\x12\x15\n\x10
STATE_STATIONARY
\x10\xc8\x01\x12\x11\n\x0c
STATE_PICKED
\x10\xc9\x01\"
!
\n\x05
Scene
\x12\x18\n\x07
objects
\x18\x01
\x03
(
\x0b\x32\x07
.Object
\"\x17\n\t
Selection
\x12\n\n\x02
id
\x18\x01
\x01
(
\t\"
}
\n\x07\x43
ommand
\x12
%
\n\x0c
pickAndPlace
\x18\x01
\x01
(
\x0b\x32\r
.PickAndPlaceH
\x00\x12
%
\n\x0c\x63
onfigChange
\x18\x02
\x01
(
\x0b\x32\r
.ConfigChangeH
\x00\x12\x1d\n\x08\x65
vacuate
\x18\x03
\x01
(
\x0b\x32\t
.EvacuateH
\x00\x42\x05\n\x03
msg
\"
@
\n\x0c
PickAndPlace
\x12\x0f\n\x07
idRobot
\x18\x01
\x01
(
\t\x12\x0e\n\x06
idPick
\x18\x02
\x01
(
\t\x12\x0f\n\x07
idPlace
\x18\x03
\x01
(
\t\"
D
\n\x0c\x43
onfigChange
\x12\x1b\n\x13
idCollaborationZone
\x18\x01
\x01
(
\t\x12\x17\n\x0f
idRobotNewOwner
\x18\x02
\x01
(
\t\"
8
\n\x08\x45
vacuate
\x12\x0f\n\x07
idRobot
\x18\x01
\x01
(
\t\x12\x1b\n\x13
idCollaborationZone
\x18\x02
\x01
(
\t\"\x8d\x01\n\x0c
Reachability
\x12\x0f\n\x07
idRobot
\x18\x01
\x01
(
\t\x12\x31\n\x07
objects
\x18\x02
\x03
(
\x0b\x32
.Reachability.ObjectReachability
\x1a\x39\n\x12
ObjectReachability
\x12\x10\n\x08
idObject
\x18\x01
\x01
(
\t\x12\x11\n\t
reachable
\x18\x02
\x01
(
\x08\x42\x1c\n\x18\x64\x65
.tudresden.inf.st.cetiP
\x01\x62\x06
proto3
'
)
)
...
@@ -74,11 +74,61 @@ _OBJECT_TYPE = _descriptor.EnumDescriptor(
...
@@ -74,11 +74,61 @@ _OBJECT_TYPE = _descriptor.EnumDescriptor(
],
],
containing_type
=
None
,
containing_type
=
None
,
serialized_options
=
None
,
serialized_options
=
None
,
serialized_start
=
4
22
,
serialized_start
=
4
51
,
serialized_end
=
5
37
,
serialized_end
=
5
66
,
)
)
_sym_db
.
RegisterEnumDescriptor
(
_OBJECT_TYPE
)
_sym_db
.
RegisterEnumDescriptor
(
_OBJECT_TYPE
)
_OBJECT_STATE
=
_descriptor
.
EnumDescriptor
(
name
=
'
State
'
,
full_name
=
'
Object.State
'
,
filename
=
None
,
file
=
DESCRIPTOR
,
create_key
=
_descriptor
.
_internal_create_key
,
values
=
[
_descriptor
.
EnumValueDescriptor
(
name
=
'
STATE_UNKNOWN
'
,
index
=
0
,
number
=
0
,
serialized_options
=
None
,
type
=
None
,
create_key
=
_descriptor
.
_internal_create_key
),
_descriptor
.
EnumValueDescriptor
(
name
=
'
STATE_IDLE
'
,
index
=
1
,
number
=
101
,
serialized_options
=
None
,
type
=
None
,
create_key
=
_descriptor
.
_internal_create_key
),
_descriptor
.
EnumValueDescriptor
(
name
=
'
STATE_PICKING
'
,
index
=
2
,
number
=
102
,
serialized_options
=
None
,
type
=
None
,
create_key
=
_descriptor
.
_internal_create_key
),
_descriptor
.
EnumValueDescriptor
(
name
=
'
STATE_PLACING
'
,
index
=
3
,
number
=
103
,
serialized_options
=
None
,
type
=
None
,
create_key
=
_descriptor
.
_internal_create_key
),
_descriptor
.
EnumValueDescriptor
(
name
=
'
STATE_MOVING
'
,
index
=
4
,
number
=
104
,
serialized_options
=
None
,
type
=
None
,
create_key
=
_descriptor
.
_internal_create_key
),
_descriptor
.
EnumValueDescriptor
(
name
=
'
STATE_STATIONARY
'
,
index
=
5
,
number
=
200
,
serialized_options
=
None
,
type
=
None
,
create_key
=
_descriptor
.
_internal_create_key
),
_descriptor
.
EnumValueDescriptor
(
name
=
'
STATE_PICKED
'
,
index
=
6
,
number
=
201
,
serialized_options
=
None
,
type
=
None
,
create_key
=
_descriptor
.
_internal_create_key
),
],
containing_type
=
None
,
serialized_options
=
None
,
serialized_start
=
569
,
serialized_end
=
709
,
)
_sym_db
.
RegisterEnumDescriptor
(
_OBJECT_STATE
)
_OBJECT_POSITION
=
_descriptor
.
Descriptor
(
_OBJECT_POSITION
=
_descriptor
.
Descriptor
(
name
=
'
Position
'
,
name
=
'
Position
'
,
...
@@ -121,8 +171,8 @@ _OBJECT_POSITION = _descriptor.Descriptor(
...
@@ -121,8 +171,8 @@ _OBJECT_POSITION = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
2
21
,
serialized_start
=
2
50
,
serialized_end
=
2
64
,
serialized_end
=
2
93
,
)
)
_OBJECT_SIZE
=
_descriptor
.
Descriptor
(
_OBJECT_SIZE
=
_descriptor
.
Descriptor
(
...
@@ -166,8 +216,8 @@ _OBJECT_SIZE = _descriptor.Descriptor(
...
@@ -166,8 +216,8 @@ _OBJECT_SIZE = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
2
66
,
serialized_start
=
2
95
,
serialized_end
=
3
19
,
serialized_end
=
3
48
,
)
)
_OBJECT_ORIENTATION
=
_descriptor
.
Descriptor
(
_OBJECT_ORIENTATION
=
_descriptor
.
Descriptor
(
...
@@ -218,8 +268,8 @@ _OBJECT_ORIENTATION = _descriptor.Descriptor(
...
@@ -218,8 +268,8 @@ _OBJECT_ORIENTATION = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
3
21
,
serialized_start
=
3
50
,
serialized_end
=
378
,
serialized_end
=
407
,
)
)
_OBJECT_COLOR
=
_descriptor
.
Descriptor
(
_OBJECT_COLOR
=
_descriptor
.
Descriptor
(
...
@@ -263,8 +313,8 @@ _OBJECT_COLOR = _descriptor.Descriptor(
...
@@ -263,8 +313,8 @@ _OBJECT_COLOR = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
380
,
serialized_start
=
409
,
serialized_end
=
4
20
,
serialized_end
=
4
49
,
)
)
_OBJECT
=
_descriptor
.
Descriptor
(
_OBJECT
=
_descriptor
.
Descriptor
(
...
@@ -318,9 +368,16 @@ _OBJECT = _descriptor.Descriptor(
...
@@ -318,9 +368,16 @@ _OBJECT = _descriptor.Descriptor(
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
,
create_key
=
_descriptor
.
_internal_create_key
),
serialized_options
=
None
,
file
=
DESCRIPTOR
,
create_key
=
_descriptor
.
_internal_create_key
),
_descriptor
.
FieldDescriptor
(
_descriptor
.
FieldDescriptor
(
name
=
'
active
'
,
full_name
=
'
Object.active
'
,
index
=
6
,
name
=
'
state
'
,
full_name
=
'
Object.state
'
,
index
=
6
,
number
=
7
,
type
=
8
,
cpp_type
=
7
,
label
=
1
,
number
=
7
,
type
=
14
,
cpp_type
=
8
,
label
=
1
,
has_default_value
=
False
,
default_value
=
False
,
has_default_value
=
False
,
default_value
=
0
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
,
create_key
=
_descriptor
.
_internal_create_key
),
_descriptor
.
FieldDescriptor
(
name
=
'
owner
'
,
full_name
=
'
Object.owner
'
,
index
=
7
,
number
=
8
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'
utf-8
'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
,
create_key
=
_descriptor
.
_internal_create_key
),
serialized_options
=
None
,
file
=
DESCRIPTOR
,
create_key
=
_descriptor
.
_internal_create_key
),
...
@@ -330,6 +387,7 @@ _OBJECT = _descriptor.Descriptor(
...
@@ -330,6 +387,7 @@ _OBJECT = _descriptor.Descriptor(
nested_types
=
[
_OBJECT_POSITION
,
_OBJECT_SIZE
,
_OBJECT_ORIENTATION
,
_OBJECT_COLOR
,
],
nested_types
=
[
_OBJECT_POSITION
,
_OBJECT_SIZE
,
_OBJECT_ORIENTATION
,
_OBJECT_COLOR
,
],
enum_types
=
[
enum_types
=
[
_OBJECT_TYPE
,
_OBJECT_TYPE
,
_OBJECT_STATE
,
],
],
serialized_options
=
None
,
serialized_options
=
None
,
is_extendable
=
False
,
is_extendable
=
False
,
...
@@ -338,7 +396,7 @@ _OBJECT = _descriptor.Descriptor(
...
@@ -338,7 +396,7 @@ _OBJECT = _descriptor.Descriptor(
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
24
,
serialized_start
=
24
,
serialized_end
=
537
,
serialized_end
=
709
,
)
)
...
@@ -369,8 +427,8 @@ _SCENE = _descriptor.Descriptor(
...
@@ -369,8 +427,8 @@ _SCENE = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
539
,
serialized_start
=
711
,
serialized_end
=
572
,
serialized_end
=
744
,
)
)
...
@@ -401,8 +459,8 @@ _SELECTION = _descriptor.Descriptor(
...
@@ -401,8 +459,8 @@ _SELECTION = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
5
74
,
serialized_start
=
74
6
,
serialized_end
=
597
,
serialized_end
=
769
,
)
)
...
@@ -452,8 +510,8 @@ _COMMAND = _descriptor.Descriptor(
...
@@ -452,8 +510,8 @@ _COMMAND = _descriptor.Descriptor(
create_key
=
_descriptor
.
_internal_create_key
,
create_key
=
_descriptor
.
_internal_create_key
,
fields
=
[]),
fields
=
[]),
],
],
serialized_start
=
599
,
serialized_start
=
771
,
serialized_end
=
724
,
serialized_end
=
896
,
)
)
...
@@ -498,8 +556,8 @@ _PICKANDPLACE = _descriptor.Descriptor(
...
@@ -498,8 +556,8 @@ _PICKANDPLACE = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
726
,
serialized_start
=
898
,
serialized_end
=
790
,
serialized_end
=
962
,
)
)
...
@@ -537,8 +595,8 @@ _CONFIGCHANGE = _descriptor.Descriptor(
...
@@ -537,8 +595,8 @@ _CONFIGCHANGE = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
792
,
serialized_start
=
964
,
serialized_end
=
860
,
serialized_end
=
1032
,
)
)
...
@@ -576,8 +634,8 @@ _EVACUATE = _descriptor.Descriptor(
...
@@ -576,8 +634,8 @@ _EVACUATE = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
862
,
serialized_start
=
1034
,
serialized_end
=
918
,
serialized_end
=
1090
,
)
)
...
@@ -615,8 +673,8 @@ _REACHABILITY_OBJECTREACHABILITY = _descriptor.Descriptor(
...
@@ -615,8 +673,8 @@ _REACHABILITY_OBJECTREACHABILITY = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
1
005
,
serialized_start
=
1
177
,
serialized_end
=
1
062
,
serialized_end
=
1
234
,
)
)
_REACHABILITY
=
_descriptor
.
Descriptor
(
_REACHABILITY
=
_descriptor
.
Descriptor
(
...
@@ -653,8 +711,8 @@ _REACHABILITY = _descriptor.Descriptor(
...
@@ -653,8 +711,8 @@ _REACHABILITY = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
921
,
serialized_start
=
1093
,
serialized_end
=
1
062
,
serialized_end
=
1
234
,
)
)
_OBJECT_POSITION
.
containing_type
=
_OBJECT
_OBJECT_POSITION
.
containing_type
=
_OBJECT
...
@@ -666,7 +724,9 @@ _OBJECT.fields_by_name['pos'].message_type = _OBJECT_POSITION
...
@@ -666,7 +724,9 @@ _OBJECT.fields_by_name['pos'].message_type = _OBJECT_POSITION
_OBJECT
.
fields_by_name
[
'
size
'
].
message_type
=
_OBJECT_SIZE
_OBJECT
.
fields_by_name
[
'
size
'
].
message_type
=
_OBJECT_SIZE
_OBJECT
.
fields_by_name
[
'
orientation
'
].
message_type
=
_OBJECT_ORIENTATION
_OBJECT
.
fields_by_name
[
'
orientation
'
].
message_type
=
_OBJECT_ORIENTATION
_OBJECT
.
fields_by_name
[
'
color
'
].
message_type
=
_OBJECT_COLOR
_OBJECT
.
fields_by_name
[
'
color
'
].
message_type
=
_OBJECT_COLOR
_OBJECT
.
fields_by_name
[
'
state
'
].
enum_type
=
_OBJECT_STATE
_OBJECT_TYPE
.
containing_type
=
_OBJECT
_OBJECT_TYPE
.
containing_type
=
_OBJECT
_OBJECT_STATE
.
containing_type
=
_OBJECT
_SCENE
.
fields_by_name
[
'
objects
'
].
message_type
=
_OBJECT
_SCENE
.
fields_by_name
[
'
objects
'
].
message_type
=
_OBJECT
_COMMAND
.
fields_by_name
[
'
pickAndPlace
'
].
message_type
=
_PICKANDPLACE
_COMMAND
.
fields_by_name
[
'
pickAndPlace
'
].
message_type
=
_PICKANDPLACE
_COMMAND
.
fields_by_name
[
'
configChange
'
].
message_type
=
_CONFIGCHANGE
_COMMAND
.
fields_by_name
[
'
configChange
'
].
message_type
=
_CONFIGCHANGE
...
...
This diff is collapsed.
Click to expand it.
utils.py
+
1
−
1
View file @
22ead654
...
@@ -51,7 +51,7 @@ def format_scene(scene: cgv_connector_pb2.Scene):
...
@@ -51,7 +51,7 @@ def format_scene(scene: cgv_connector_pb2.Scene):
for
obj
in
scene
.
objects
:
for
obj
in
scene
.
objects
:
if
obj
.
type
!=
cgv_connector_pb2
.
Object
.
Type
.
DROP_OFF_LOCATION
and
obj
.
type
!=
cgv_connector_pb2
.
Object
.
Type
.
UNKNOWN
:
if
obj
.
type
!=
cgv_connector_pb2
.
Object
.
Type
.
DROP_OFF_LOCATION
and
obj
.
type
!=
cgv_connector_pb2
.
Object
.
Type
.
UNKNOWN
:
pos
=
obj
.
pos
pos
=
obj
.
pos
result
+=
f
"
\n
<
{
cgv_connector_pb2
.
Object
.
Type
.
Name
(
obj
.
type
)
:
20
}
{
obj
.
id
:
15
}
at (
{
pos
.
x
:
6.2
}
{
pos
.
y
:
6.2
}
{
pos
.
z
:
6.2
}
)
{
obj
.
activ
e
}
>
"
result
+=
f
"
\n
<
{
cgv_connector_pb2
.
Object
.
Type
.
Name
(
obj
.
type
)
:
20
}
{
obj
.
id
:
15
}
at (
{
pos
.
x
:
6.2
}
{
pos
.
y
:
6.2
}
{
pos
.
z
:
6.2
}
)
{
obj
.
stat
e
}
>
"
# result += str(obj)
# result += str(obj)
# result = scene
# result = scene
return
result
return
result
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment