Skip to content

Commit

Permalink
funcionando-topics-nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrique Soriano committed Jan 28, 2023
1 parent 1742d92 commit 816011b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ripspy/ripspy.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import typing
from typing import Dict, List

import rclpy
from rclpy.node import Node
from std_msgs.msg import String
import typing
from typing import List
from typing import Dict


# all missing asserts for isinstance are deleted because of
# this error: Subscripted generics cannot be used with class
Expand Down Expand Up @@ -165,12 +164,14 @@ class RipsCore(Node):
"""Rips node."""

__slots__ = [
'_context'
'_context',
]

__POLLING_TIME = 0.5 # secs

def __init__(self):
super().__init__('rips')
self.create_timer(0.5, self.timer_callback)
self.create_timer(self.__POLLING_TIME, self.timer_callback)
self.subscription = self.create_subscription(
String,
'ripsfake',
Expand Down

0 comments on commit 816011b

Please sign in to comment.