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] flake8 test #6

Merged
merged 1 commit into from
Jul 3, 2024
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
[fix] flake8 test
  • Loading branch information
miferco97 committed Jul 3, 2024
commit b0586ceb8b01d629474e5a63f9911c0e4d4e1aa9
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