Skip to content

Commit

Permalink
Merge pull request #6 from aerostack2/update_parameters_file
Browse files Browse the repository at this point in the history
[fix] flake8 test
  • Loading branch information
RPS98 authored Jul 3, 2024
2 parents 686a6c1 + b0586ce commit f80f36b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions as2_platform_crazyflie/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ def __init__(self):
self.declare_parameter('cam.balance_color', False)
self.declare_parameter('cam.verbose', False)
self.declare_parameter('cam.flip_image', False)

deck_ip = self.get_parameter('cam.ip').value
if deck_ip == 'None':
print('No IP provided, using default IP')
exit(1)
print(f'IP: {deck_ip}')

deck_port = self.get_parameter('cam.port').value

self.factors = [1.8648577393897736, 1.2606252586922309, 1.4528872589128194]
Expand Down
5 changes: 3 additions & 2 deletions scripts/aideck_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,17 @@
# POSSIBILITY OF SUCH DAMAGE.


from time import sleep

from as2_platform_crazyflie.viewer import AIdeckPublisher
import rclpy
from time import sleep


def main(args=None):
"""Entrypoint."""
rclpy.init(args=args)
stream_pub = AIdeckPublisher()
# rclpy.spin(stream_pub)

while rclpy.ok():
rclpy.spin_once(stream_pub)
sleep(0.01)
Expand Down

0 comments on commit f80f36b

Please sign in to comment.