-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support validating target reports through image stream (#59)
* implemented target validation, streaming start/stop/report Signed-off-by: Ian Chen <[email protected]> * add test Signed-off-by: Ian Chen <[email protected]> * update test Signed-off-by: Ian Chen <[email protected]> * double to int for img pos Signed-off-by: Ian Chen <[email protected]> * doc Signed-off-by: Ian Chen <[email protected]> * Stop robot motion when it moves out of 2nd geofence (#60) * disable robot when it moves out of outer geofence Signed-off-by: Ian Chen <[email protected]> * make robot static instead of halting its motion Signed-off-by: Ian Chen <[email protected]> * fix test Signed-off-by: Ian Chen <[email protected]> * update comments Signed-off-by: Ian Chen <[email protected]> * Bridge competition topics (#62) * publish phase, add competition launch file Signed-off-by: Ian Chen <[email protected]> * fix and add test Signed-off-by: Ian Chen <[email protected]>
- Loading branch information
Showing
9 changed files
with
1,969 additions
and
113 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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,70 @@ | ||
# Copyright 2022 Open Source Robotics Foundation, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from ament_index_python.packages import get_package_share_directory | ||
|
||
from launch import LaunchDescription | ||
from launch.actions import DeclareLaunchArgument, IncludeLaunchDescription | ||
from launch.actions import ExecuteProcess | ||
from launch.actions import OpaqueFunction | ||
from launch.launch_description_sources import PythonLaunchDescriptionSource | ||
from launch.substitutions import LaunchConfiguration | ||
|
||
from launch_ros.actions import Node | ||
|
||
import os | ||
|
||
def launch(context, *args, **kwargs): | ||
|
||
ign_args = LaunchConfiguration('ign_args').perform(context) | ||
|
||
ign_gazebo = IncludeLaunchDescription( | ||
PythonLaunchDescriptionSource([os.path.join( | ||
get_package_share_directory('ros_ign_gazebo'), 'launch'), | ||
'/ign_gazebo.launch.py']), | ||
launch_arguments = {'ign_args': ign_args}.items()) | ||
|
||
ros2_ign_score_bridge = Node( | ||
package='ros_ign_bridge', | ||
executable='parameter_bridge', | ||
output='screen', | ||
arguments=['/mbzirc/score@std_msgs/msg/[email protected]'], | ||
) | ||
|
||
ros2_ign_run_clock_bridge = Node( | ||
package='ros_ign_bridge', | ||
executable='parameter_bridge', | ||
output='screen', | ||
arguments=['/mbzirc/run_clock@rosgraph_msgs/msg/[email protected]'], | ||
) | ||
|
||
ros2_ign_phase_bridge = Node( | ||
package='ros_ign_bridge', | ||
executable='parameter_bridge', | ||
output='screen', | ||
arguments=['/mbzirc/phase@std_msgs/msg/[email protected]'], | ||
) | ||
|
||
return [ign_gazebo, | ||
ros2_ign_score_bridge, | ||
ros2_ign_run_clock_bridge, | ||
ros2_ign_phase_bridge] | ||
|
||
def generate_launch_description(): | ||
return LaunchDescription([ | ||
DeclareLaunchArgument('ign_args', default_value='', | ||
description='Arguments to be passed to Ignition Gazebo'), | ||
OpaqueFunction(function = launch) | ||
]) | ||
|
This file contains 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 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 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