Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
navipy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Looking for advice? Join the
Matrix channel for GitLab users in Bielefeld
!
Show more breadcrumbs
Olivier Bertrand
navipy
Commits
43a8f6af
Commit
43a8f6af
authored
7 years ago
by
Olivier Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
Correct scene dimension mismatch and bug with emtpy folder
parent
b2f2e21f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
navipy/sensors/bee_sampling.py
+3
-1
3 additions, 1 deletion
navipy/sensors/bee_sampling.py
navipy/sensors/renderer.py
+3
-2
3 additions, 2 deletions
navipy/sensors/renderer.py
with
6 additions
and
3 deletions
navipy/sensors/bee_sampling.py
+
3
−
1
View file @
43a8f6af
...
...
@@ -143,7 +143,8 @@ so that they are not rendered
raise
TypeError
(
'
filename must be a string
'
)
database_folder
=
os
.
path
.
dirname
(
database_filename
)
if
not
os
.
path
.
exists
(
database_folder
):
os
.
makedirs
(
database_folder
)
if
database_folder
:
# Check empty string
os
.
makedirs
(
database_folder
)
dataloger
=
DataBaseSave
(
database_filename
,
channels
=
[
'
R
'
,
'
G
'
,
'
B
'
,
'
D
'
],
arr_dtype
=
np
.
uint8
)
...
...
@@ -162,6 +163,7 @@ so that they are not rendered
# and the cmaxminrange has not already been assigned
# so the image need to be rendered
scene
=
self
.
renderer
.
scene
(
posorient
)
scene
=
scene
[...,
0
]
distance
=
scene
[...,
-
1
]
distance
[
distance
>
self
.
world_dim
]
=
self
.
world_dim
scene
[...,
-
1
]
=
distance
...
...
This diff is collapsed.
Click to expand it.
navipy/sensors/renderer.py
+
3
−
2
View file @
43a8f6af
...
...
@@ -322,5 +322,6 @@ is the distance.
:rtype: a double numpy array
"""
self
.
update
(
posorient
)
return
np
.
concatenate
((
self
.
image
,
self
.
distance
),
axis
=
2
)
toreturn
=
np
.
concatenate
((
self
.
image
,
self
.
distance
),
axis
=
2
)
return
toreturn
[...,
np
.
newaxis
]
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