Changed the Imports
This commit is contained in:
parent
216bc96396
commit
f9973e9c78
@ -5,7 +5,7 @@ from rclpy.node import Node
|
|||||||
from custom_interfaces.srv import CustomSrv1
|
from custom_interfaces.srv import CustomSrv1
|
||||||
|
|
||||||
# Service Minimal Host and Client
|
# Service Minimal Host and Client
|
||||||
from pubsub.pubsub_library_v3 import MinimalServiceClientAsync
|
from pubsub.pubsub_library_v4 import MinimalServiceClientAsync
|
||||||
|
|
||||||
|
|
||||||
def main(args=None):
|
def main(args=None):
|
||||||
|
@ -5,13 +5,13 @@ from rclpy.node import Node
|
|||||||
from custom_interfaces.srv import CustomSrv1
|
from custom_interfaces.srv import CustomSrv1
|
||||||
|
|
||||||
# Service Minimal Host and Client
|
# Service Minimal Host and Client
|
||||||
import pubsub.pubsub_library_v3 as lib
|
from pubsub.pubsub_library_v4 import MinimalServiceProvider
|
||||||
|
|
||||||
|
|
||||||
def main(args=None):
|
def main(args=None):
|
||||||
rclpy.init(args=args)
|
rclpy.init(args=args)
|
||||||
|
|
||||||
minimal_service = lib.MinimalServiceProvider(NODE_NAME="Srv_host_test_node", SRV_NAME="test_srv", SRV_TYPE=CustomSrv1)
|
minimal_service = MinimalServiceProvider(NODE_NAME="Srv_host_test_node", SRV_NAME="test_srv", SRV_TYPE=CustomSrv1)
|
||||||
|
|
||||||
while rclpy.ok():
|
while rclpy.ok():
|
||||||
try:
|
try:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import rclpy
|
import rclpy
|
||||||
from rclpy.node import Node
|
from rclpy.node import Node
|
||||||
|
|
||||||
import pubsub.pubsub_library_v3 as lib
|
from pubsub.pubsub_library_v4 import MinimalServiceClientAsync
|
||||||
|
|
||||||
# Service Type Files
|
# Service Type Files
|
||||||
from custom_interfaces.srv import StateMachineSrv
|
from custom_interfaces.srv import StateMachineSrv
|
||||||
@ -10,7 +10,7 @@ from custom_interfaces.srv import StateMachineSrv
|
|||||||
def main(args=None):
|
def main(args=None):
|
||||||
rclpy.init(args=args)
|
rclpy.init(args=args)
|
||||||
|
|
||||||
client_cmd_srv = lib.MinimalServiceClientAsync(NODE_NAME="client_cmd_srv_node", SRV_NAME="cmd", SRV_TYPE=StateMachineSrv)
|
client_cmd_srv = MinimalServiceClientAsync(NODE_NAME="client_cmd_srv_node", SRV_NAME="cmd", SRV_TYPE=StateMachineSrv)
|
||||||
|
|
||||||
# Create request
|
# Create request
|
||||||
srv_request = StateMachineSrv.Request()
|
srv_request = StateMachineSrv.Request()
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import rclpy
|
import rclpy
|
||||||
from rclpy.node import Node
|
from rclpy.node import Node
|
||||||
|
|
||||||
from pubsub.pubsub_library_v3 import MinimalServiceProvider
|
from pubsub.pubsub_library_v4 import MinimalServiceProvider
|
||||||
|
|
||||||
# Service Type Files
|
# Service Type Files
|
||||||
from custom_interfaces.srv import StateMachineSrv
|
from custom_interfaces.srv import StateMachineSrv
|
||||||
|
@ -18,7 +18,7 @@ import rclpy
|
|||||||
from rclpy.node import Node
|
from rclpy.node import Node
|
||||||
|
|
||||||
# Import Subscriber Library
|
# Import Subscriber Library
|
||||||
from .pubsub_library_v3 import MinimalSubscriber
|
from pubsub.pubsub_library_v4 import MinimalSubscriber
|
||||||
|
|
||||||
# Import Message Types
|
# Import Message Types
|
||||||
from custom_interfaces.msg import CustomMsg1
|
from custom_interfaces.msg import CustomMsg1
|
||||||
|
@ -18,7 +18,7 @@ import rclpy
|
|||||||
from rclpy.node import Node
|
from rclpy.node import Node
|
||||||
|
|
||||||
# Import Publisher Library (Python Library)
|
# Import Publisher Library (Python Library)
|
||||||
from .pubsub_library import MinimalPublisher
|
from pubsub.pubsub_library_v4 import MinimalPublisher
|
||||||
|
|
||||||
# Import Message Types (Message Files)
|
# Import Message Types (Message Files)
|
||||||
from custom_interfaces.msg import CustomMsg1
|
from custom_interfaces.msg import CustomMsg1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user