Repository navigation
Add a doctor view camera feed with delay monitoring #36
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b285c1c
Add simulated Xbox teleop for the arm
yassinsolim 48f3b7d
Add a doctor view camera feed with delay monitoring
yassinsolim 434cb0a
Loop only local video files in the camera bridge
yassinsolim 2b8a23e
Merge main (with #28) into feature/camera-feed
yassinsolim 34846ee
Warn when the camera feed stops or the clocks disagree
yassinsolim a40457a
Drop silent camera bridges and stop the receiver cleanly
yassinsolim ffd5116
Warn when the camera bridge clock is too coarse
yassinsolim 837f858
Document keeping the camera CSV from a Docker run
yassinsolim 1d61d9f
Merge main into the camera feed
yassinsolim 6679bbe
Merge main into the camera feed
yassinsolim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| from launch import LaunchDescription | ||
| from launch.actions import DeclareLaunchArgument | ||
| from launch.substitutions import LaunchConfiguration | ||
| from launch_ros.actions import Node | ||
| from launch_ros.parameter_descriptions import ParameterValue | ||
|
|
||
|
|
||
| def generate_launch_description(): | ||
| return LaunchDescription([ | ||
| DeclareLaunchArgument( | ||
| 'bind_address', default_value='127.0.0.1', | ||
| description='Address camera_receiver listens on (0.0.0.0 inside Docker)'), | ||
| DeclareLaunchArgument( | ||
| 'port', default_value='47310', description='TCP port for camera_bridge'), | ||
| DeclareLaunchArgument( | ||
| 'log_csv', default_value='', | ||
| description='Log each frame: capture time, arrival time and delay (CSV path)'), | ||
| DeclareLaunchArgument( | ||
| 'diagnostics_topic', default_value='/diagnostics', | ||
| description='Diagnostics topic for the frame rate and delay'), | ||
| Node( | ||
| package='waybionic_camera', executable='camera_receiver', name='camera_receiver', | ||
| output='screen', | ||
| parameters=[{ | ||
| 'bind_address': LaunchConfiguration('bind_address'), | ||
| 'port': ParameterValue(LaunchConfiguration('port'), value_type=int), | ||
| }]), | ||
| Node( | ||
| package='waybionic_camera', executable='latency_monitor', | ||
| name='camera_latency_monitor', | ||
| parameters=[{ | ||
| 'log_csv': ParameterValue(LaunchConfiguration('log_csv'), value_type=str), | ||
| 'diagnostics_topic': LaunchConfiguration('diagnostics_topic'), | ||
| }]), | ||
| ]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| <?xml version="1.0"?> | ||
| <?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
| <package format="3"> | ||
| <name>waybionic_camera</name> | ||
| <version>0.1.0</version> | ||
| <description>Doctor view camera feed for the ground station, with frame delay and rate monitoring.</description> | ||
| <maintainer email="solimanyassin@gmail.com">Yassin Soliman</maintainer> | ||
| <license>Apache-2.0</license> | ||
|
|
||
| <depend>diagnostic_msgs</depend> | ||
| <depend>rclpy</depend> | ||
| <depend>sensor_msgs</depend> | ||
|
|
||
| <exec_depend>compressed_image_transport</exec_depend> | ||
| <exec_depend>launch</exec_depend> | ||
| <exec_depend>launch_ros</exec_depend> | ||
|
|
||
| <test_depend>ament_flake8</test_depend> | ||
| <test_depend>ament_pep257</test_depend> | ||
| <test_depend>python3-pytest</test_depend> | ||
|
|
||
| <export> | ||
| <build_type>ament_python</build_type> | ||
| </export> | ||
| </package> |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [develop] | ||
| script_dir=$base/lib/waybionic_camera | ||
| [install] | ||
| install_scripts=$base/lib/waybionic_camera |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| from glob import glob | ||
| import os | ||
|
|
||
| from setuptools import find_packages, setup | ||
|
|
||
| package_name = 'waybionic_camera' | ||
|
|
||
| setup( | ||
| name=package_name, | ||
| version='0.1.0', | ||
| packages=find_packages(exclude=['test']), | ||
| data_files=[ | ||
| ('share/ament_index/resource_index/packages', ['resource/' + package_name]), | ||
| ('share/' + package_name, ['package.xml']), | ||
| (os.path.join('share', package_name, 'launch'), glob('launch/*.launch.py')), | ||
| ], | ||
| install_requires=['setuptools'], | ||
| zip_safe=True, | ||
| maintainer='Yassin Soliman', | ||
| maintainer_email='solimanyassin@gmail.com', | ||
| description=( | ||
| 'Doctor view camera feed for the ground station, with frame delay and rate monitoring.' | ||
| ), | ||
| license='Apache-2.0', | ||
| tests_require=['pytest'], | ||
| entry_points={ | ||
| 'console_scripts': [ | ||
| 'camera_receiver = waybionic_camera.camera_receiver:main', | ||
| 'latency_monitor = waybionic_camera.latency_monitor:main', | ||
| ], | ||
| }, | ||
| ) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.