Skip to content

Commit 2c1ee67

Browse files
committed
fix ROS 2 styling
1 parent b0c176d commit 2c1ee67

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Unreleased
2020

2121
**Fixed**
2222

23-
* Fixed KeyError in ROS2 ActionClient when receiving action results with different message formats from rosbridge.
23+
* Fixed KeyError in ROS 2 ActionClient when receiving action results with different message formats from rosbridge.
2424

2525
**Deprecated**
2626

src/roslibpy/comm/comm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def _handle_action_result(self, message):
164164
del self._pending_action_requests[request_id]
165165

166166
# Handle different message formats for status field
167-
# ROS2 rosbridge may send status at top level or inside values
167+
# ROS 2 rosbridge may send status at top level or inside values
168168
status = message.get("status")
169169
if status is None and "values" in message:
170170
status = message["values"].get("status")

src/roslibpy/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def __init__(self, values=None):
155155

156156

157157
class ActionGoalStatus(Enum):
158-
""" ROS2 Action Goal statuses.
158+
""" ROS 2 Action Goal statuses.
159159
Reference: https://docs.ros2.org/latest/api/action_msgs/msg/GoalStatus.html
160160
"""
161161

tests/ros2/test_action_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Tests for ROS2 ActionClient message handling."""
1+
"""Tests for ROS 2 ActionClient message handling."""
22

33
from unittest.mock import Mock
44

@@ -19,7 +19,7 @@ def test_action_result_with_status_at_top_level():
1919
request_id = "send_action_goal:/test_action:1"
2020
protocol._pending_action_requests[request_id] = (result_callback, feedback_callback, error_callback)
2121

22-
# ROS2 rosbridge message format with status at top level
22+
# ROS 2 rosbridge message format with status at top level
2323
message = {
2424
"op": "action_result",
2525
"action": "/test_action",

0 commit comments

Comments
 (0)