Skip to content

Commit

Permalink
chore: license & pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejmajek committed Sep 17, 2024
1 parent 9f243fe commit 32c1caf
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
13 changes: 13 additions & 0 deletions src/rai/rai/tools/ros/nav2/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (C) 2024 Robotec.AI
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
14 changes: 14 additions & 0 deletions src/rai/rai/tools/ros/nav2/basic_navigator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright (C) 2024 Robotec.AI
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from geometry_msgs.msg import Point
from langchain.tools import tool

Expand Down
6 changes: 2 additions & 4 deletions src/rai_hmi/rai_hmi/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,14 @@ def task_goal_response_callback(self, future, uid: UUID4):
self.task_running[uid] = False
self.task_feedbacks.put(
MissionAcceptanceMessage(
uid=uid, content=f"Task rejected by action server."
uid=uid, content="Task rejected by action server."
)
)
return

self.task_running[uid] = True
self.task_feedbacks.put(
MissionAcceptanceMessage(
uid=uid, content=f"Task accepted by action server."
)
MissionAcceptanceMessage(uid=uid, content="Task accepted by action server.")
)
self.get_logger().info("Task goal accepted by action server.")
self._get_result_future = goal_handle.get_result_async()
Expand Down

0 comments on commit 32c1caf

Please sign in to comment.