Skip to content

Commit

Permalink
Update rosbot_gazebo/test/simulation_test_node.py
Browse files Browse the repository at this point in the history
Co-authored-by: rafal-gorecki <[email protected]>
  • Loading branch information
delihus and rafal-gorecki authored Oct 16, 2023
1 parent 23c5c83 commit cd24864
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rosbot_gazebo/test/simulation_test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ def timer_callback(self):
self.lookup_transform_odom()

def scan_callback(self, data: LaserScan):
self.scan_event.set()
if data.ranges:
self.scan_event.set()

def publish_cmd_vel_messages(self):
twist_msg = Twist()
Expand Down

0 comments on commit cd24864

Please sign in to comment.