Skip to content

Commit ede87c7

Browse files
committed
moving python simple action classes
1 parent fcd59fa commit ede87c7

File tree

7 files changed

+5
-13
lines changed

7 files changed

+5
-13
lines changed

simple_node/include/simple_node/actions/action_server.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class ActionServer : public rclcpp_action::Server<ActionT> {
104104

105105
void handle_execute(const std::shared_ptr<GoalHandle> goal_handle) {
106106

107-
this->goal_handle = goal_handle;
107+
(void)goal_handle;
108108

109109
std::thread(std::bind(&ActionServer::execute, this)).detach();
110110

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
2-
from .client import ActionClient
3-
from .server import ActionServer
File renamed without changes.

simple_node/simple_node/actions/server/action_server.py renamed to simple_node/simple_node/actions/action_server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def __execute_callback(self, goal_handle: ServerGoalHandle):
6969
execute callback
7070
"""
7171

72-
self._goal_handle = goal_handle
7372

7473
t = Thread(target=self.__execute)
7574
t.start()

simple_node/simple_node/actions/client/__init__.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

simple_node/simple_node/actions/server/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

simple_node/simple_node/node.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11

22
""" ROS2 Node to simulate ROS1 Node """
33

4-
from typing import Callable
54

65
import time
76
from threading import Thread
7+
from typing import Callable
88

99
import rclpy
1010
from rclpy.node import Node as Node2
1111
from rclpy.executors import MultiThreadedExecutor, Executor
1212
from rclpy.client import Client
1313
from rclpy.callback_groups import ReentrantCallbackGroup
1414

15-
from .actions import (
16-
ActionClient,
17-
ActionServer
18-
)
15+
from simple_node.actions.action_client import ActionClient
16+
from simple_node.actions.action_server import ActionServer
17+
1918

2019

2120
class Node(Node2):

0 commit comments

Comments
 (0)