Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
isr_cobot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rodrigo Ventura
isr_cobot
Commits
ad61c643
Commit
ad61c643
authored
Jul 10, 2015
by
yoda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
costmap functional in simulation
parent
ef623a48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
rosbuild/scout_navigation/navgoal.py
rosbuild/scout_navigation/navgoal.py
+3
-1
No files found.
rosbuild/scout_navigation/navgoal.py
View file @
ad61c643
...
...
@@ -12,6 +12,8 @@ from std_msgs.msg import *
from
geometry_msgs.msg
import
*
from
nav_msgs.msg
import
*
from
common
import
*
TOPIC_VREF
=
"navigator/param/vref"
TOPIC_CMAP
=
"navigator/costmap"
...
...
@@ -165,7 +167,6 @@ class NavGoalFixed(NavGoalBase):
def
cmap_handler
(
self
,
msg
):
smapf
=
self
.
cmap2smapf
(
msg
.
info
,
msg
.
data
)
np
.
savetxt
(
"smapf"
,
smapf
)
if
smapf
is
not
None
:
# replan with new speed map factor
(
x
,
y
)
=
self
.
goal_pose
[
0
:
2
]
...
...
@@ -173,6 +174,7 @@ class NavGoalFixed(NavGoalBase):
if
not
self
.
g
.
planner
.
solve
((
x
,
y
),
smapf
):
rospy
.
logerr
(
"cmap_handler(): re-planning failed!"
)
print
"REPLANNING took %f seconds"
%
(
time
.
time
()
-
t1
)
#store_data(dict(smapf=smapf, planner=self.g.planner), "cmap_dump.data")
else
:
rospy
.
logwarn
(
"IGNORING costmap"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment