Skip to content

Commit

Permalink
add a parameter in python examples
Browse files Browse the repository at this point in the history
Signed-off-by: Sangtaek Lee <[email protected]>
  • Loading branch information
sangteak601 committed Apr 1, 2024
1 parent e172f35 commit 8282371
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def __init__(self, bag_filename):
self.publisher = self.create_publisher(String, 'chatter', 10)
# ignore timestamp and publish at a fixed rate (10 Hz).
self.timer = self.create_timer(0.1, self.timer_callback)
self.message_needs_to_be_edit_before_send_ = True
self.declare_parameter("edit", False)
self.message_needs_to_be_edit_before_send_ = self.get_parameter("edit").get_parameter_value().bool_value

def timer_callback(self):
while self.reader.has_next():
Expand Down

0 comments on commit 8282371

Please sign in to comment.