Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix import statement and usage for rclpy.node.Node #196

Merged
merged 1 commit into from
Nov 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
from example_interfaces.srv import AddTwoInts

import rclpy
from rclpy.node import Node


class AddTwoIntsServer(rclpy.Node):
class AddTwoIntsServer(Node):

def __init__(self):
super().__init__('add_two_ints_server')
Expand Down
3 changes: 2 additions & 1 deletion demo_nodes_py/demo_nodes_py/topics/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
import sys

import rclpy
from rclpy.node import Node

from std_msgs.msg import String


class Listener(rclpy.Node):
class Listener(Node):

def __init__(self):
super().__init__('listener')
Expand Down
3 changes: 2 additions & 1 deletion demo_nodes_py/demo_nodes_py/topics/listener_qos.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
import sys

import rclpy
from rclpy.node import Node
from rclpy.qos import qos_profile_default, qos_profile_sensor_data
from rclpy.qos import QoSReliabilityPolicy

from std_msgs.msg import String


class ListenerQos(rclpy.Node):
class ListenerQos(Node):

def __init__(self, qos_profile):
super().__init__('listener_qos')
Expand Down
3 changes: 2 additions & 1 deletion demo_nodes_py/demo_nodes_py/topics/talker.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
import sys

import rclpy
from rclpy.node import Node

from std_msgs.msg import String


class Talker(rclpy.Node):
class Talker(Node):

def __init__(self):
super().__init__('talker')
Expand Down
3 changes: 2 additions & 1 deletion demo_nodes_py/demo_nodes_py/topics/talker_qos.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
import sys

import rclpy
from rclpy.node import Node
from rclpy.qos import qos_profile_default, qos_profile_sensor_data
from rclpy.qos import QoSReliabilityPolicy

from std_msgs.msg import String


class TalkerQos(rclpy.Node):
class TalkerQos(Node):

def __init__(self, qos_profile):
super().__init__('talker_qos')
Expand Down