Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CSE-478wi
lab2
Commits
5f86185a
Commit
5f86185a
authored
Feb 04, 2020
by
Kay
Browse files
Update runner_script
parent
4fb1de5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/runner_script.py
View file @
5f86185a
...
@@ -77,8 +77,8 @@ plan_names = ['circle', 'left turn', 'right turn', 'wave', 'cse022 real path']
...
@@ -77,8 +77,8 @@ plan_names = ['circle', 'left turn', 'right turn', 'wave', 'cse022 real path']
def
get_current_pose
():
def
get_current_pose
():
car_pose_topic
=
\
car_pose_topic
=
\
(
'/
car_pose'
if
int
(
rospy
.
get_param
(
'/controller/use_sim_pose'
))
==
1
(
'/
pf/inferred_pose'
if
rospy
.
has_param
(
'/controller/use_sim_pose'
)
and
int
(
rospy
.
get_param
(
'/controller/use_sim_pose'
))
==
0
else
'/
pf/inferred
_pose'
)
else
'/
car
_pose'
)
print
(
"Listening to {} for initial pose"
.
format
(
car_pose_topic
))
print
(
"Listening to {} for initial pose"
.
format
(
car_pose_topic
))
car_pose_msg
=
rospy
.
wait_for_message
(
car_pose_topic
,
PoseStamped
)
car_pose_msg
=
rospy
.
wait_for_message
(
car_pose_topic
,
PoseStamped
)
tf_listener
=
tf
.
TransformListener
()
tf_listener
=
tf
.
TransformListener
()
...
...
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