Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
uppaal2jetracer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felix Dold
uppaal2jetracer
Commits
043728e6
Commit
043728e6
authored
1 month ago
by
Louis Kevin Fink
Browse files
Options
Downloads
Patches
Plain Diff
fix: add goal_handle reset
parent
94032901
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
uppaal2jetracer/jetracerros2/jetracerros2/turn_controller.py
+5
-1
5 additions, 1 deletion
uppaal2jetracer/jetracerros2/jetracerros2/turn_controller.py
with
5 additions
and
1 deletion
uppaal2jetracer/jetracerros2/jetracerros2/turn_controller.py
+
5
−
1
View file @
043728e6
...
...
@@ -75,6 +75,7 @@ class TurnActionClientAsync(Node):
"""
self
.
_status
=
GoalStatus
.
STATUS_UNKNOWN
self
.
_goal_handle
=
None
def
send_turn_goal_async
(
self
,
theta
:
float
):
"""
...
...
@@ -107,6 +108,8 @@ class TurnActionClientAsync(Node):
logger
.
debug
(
"
Canceling turn request!
"
)
cancel_future
.
add_done_callback
(
self
.
_cancel_response_callback
)
self
.
_goal_handle
=
None
def
is_turn_goal_active
(
self
)
->
bool
:
"""
Check if the turn goal is active.
...
...
@@ -158,6 +161,7 @@ class TurnController:
Stop the JetRacer.
"""
self
.
_turn_action_client
.
cancel_turn_goal_async
()
self
.
_turn_action_client
.
cleanup
()
def
shutdown
(
self
):
"""
...
...
@@ -179,7 +183,7 @@ class TurnController:
self
.
_turn_action_client
.
send_turn_goal_async
(
theta
)
while
(
self
.
_turn_action_client
.
is_turn_goal_active
()
)
:
while
self
.
_turn_action_client
.
is_turn_goal_active
():
logger
.
debug
(
"
Waiting for Turn action request %f to succeed.
"
,
theta
)
rclpy
.
spin_once
(
self
.
_turn_action_client
)
...
...
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