Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Speech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
ArmarX
Skills
Speech
Commits
69198958
Commit
69198958
authored
5 months ago
by
Joana Plewnia
Browse files
Options
Downloads
Patches
Plain Diff
..
parent
1fcbd1fd
No related branches found
Branches containing commit
No related tags found
2 merge requests
!16
Combined changes from verbalization and rtlntv branch
,
!14
Verbalization
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/skills/skills/query_symbolic_scene_memory.py
+2
-1
2 additions, 1 deletion
python/skills/skills/query_symbolic_scene_memory.py
with
2 additions
and
1 deletion
python/skills/skills/query_symbolic_scene_memory.py
+
2
−
1
View file @
69198958
...
...
@@ -115,7 +115,7 @@ def make_name_pretty(location, core_id):
def
query_mem_for_object_class_info
(
mns
,
object_name
,
core_id
):
location_name
=
object_name
.
split
(
'
/
'
)[
-
1
]
print
(
"
Searching for object class information
"
)
print
(
"
Searching for object class information
for location
"
,
location_name
)
reader
=
mns
.
wait_for_reader
(
core_id
)
print
(
"
Got reader
"
)
memory
=
reader
.
query_core_segment
(
name
=
core_id
.
core_segment_name
,
latest_snapshot
=
True
)
...
...
@@ -128,6 +128,7 @@ def query_mem_for_object_class_info(mns, object_name, core_id):
data
:
Dict
[
str
,
Any
]
=
pythonic_from_to_aron_ice
.
pythonic_from_aron_ice
(
instance
.
data
)
try
:
o_id
=
data
[
'
id
'
][
'
className
'
]
print
(
"
Object id:
"
,
o_id
)
o_names_spoken
=
data
[
'
names
'
][
'
spoken
'
]
if
o_id
==
location_name
:
...
...
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