-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move rosbridge code to dashboard, delete the urc_teleop folder
- Loading branch information
1 parent
fa37ddc
commit 88f7f34
Showing
2 changed files
with
61 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(urc_teleop) | ||
|
||
include(../cmake/default_settings.cmake) | ||
|
||
# find dependencies | ||
find_package(ament_cmake REQUIRED) | ||
find_package(rosbridge_server REQUIRED) | ||
|
||
set(dependencies | ||
rosbridge_server | ||
) | ||
|
||
# Install launch files. | ||
install( | ||
DIRECTORY | ||
launch | ||
DESTINATION share/${PROJECT_NAME}/ | ||
) | ||
|
||
if(BUILD_TESTING) | ||
find_package(ament_lint_auto REQUIRED) | ||
# the following line skips the copyright linker | ||
set(ament_cmake_copyright_FOUND TRUE) | ||
# the following line skips cpplint (only works in a git repo) | ||
set(ament_cmake_cpplint_FOUND TRUE) | ||
|
||
ament_lint_auto_find_test_dependencies() | ||
endif() | ||
|
||
ament_export_dependencies(${dependencies}) | ||
ament_package() | ||
|
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,28 @@ | ||
import launch | ||
import launch_ros.actions | ||
|
||
|
||
def generate_launch_description(): | ||
|
||
# Initializes the websocket | ||
rosbridge_server_node = launch_ros.actions.Node( | ||
package="rosbridge_server", | ||
name="rosbridge_server", | ||
executable="rosbridge_websocket.py", | ||
parameters=[ | ||
{"port": 9090} | ||
] | ||
) | ||
|
||
# Adds /rosapi/topics_and_raw_types to ROS2 (required for Foxglove Studio) | ||
ros_api_node = launch_ros.actions.Node( | ||
package="rosapi", | ||
name="rosapi", | ||
executable="rosapi_node", | ||
parameters=[] | ||
) | ||
|
||
return launch.LaunchDescription([ | ||
rosbridge_server_node, | ||
ros_api_node | ||
]) |