-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afebb39
commit ef17e8f
Showing
13 changed files
with
234 additions
and
125 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
52 changes: 0 additions & 52 deletions
52
bazel_ros2_rules/ros2/tools/roslaunch_util/roslaunch_util.py
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
14 changes: 11 additions & 3 deletions
14
ros2_example_bazel_installed/ros2_example_apps/eg_launch.py
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 |
---|---|---|
@@ -1,10 +1,18 @@ | ||
from bazel_ros_env import Rlocation | ||
from launch import LaunchDescription | ||
from roslaunch_util import ExecuteBazelTarget | ||
from launch.actions import ExecuteProcess | ||
|
||
|
||
def generate_launch_description(): | ||
# See bazel_ros2_rules/ros2/README.md, Launch Files, for notes on | ||
# features and limitations. | ||
prefix = "ros2_example_bazel_installed/ros2_example_apps" | ||
talker_bin = Rlocation(f"{prefix}/eg_talker") | ||
listener_bin = Rlocation(f"{prefix}/eg_listener") | ||
|
||
return LaunchDescription([ | ||
# Running a talker written in python. | ||
ExecuteBazelTarget('eg_talker'), | ||
ExecuteProcess(cmd=[talker_bin]), | ||
# Running a listener written in cpp. | ||
ExecuteBazelTarget('eg_listener'), | ||
ExecuteProcess(cmd=[listener_bin]), | ||
]) |
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
<launch> | ||
<execute_bazel_target target="eg_talker"/> | ||
<execute_bazel_target target="eg_listener"/> | ||
<!-- | ||
See bazel_ros2_rules/ros2/README.md, Launch Files, for notes on | ||
features and limitations. | ||
--> | ||
<executable cmd="ros2_example_apps/eg_talker" output="screen"/> | ||
<executable cmd="ros2_example_apps/eg_listener" output="screen"/> | ||
</launch> |
Oops, something went wrong.