Skip to content

Commit

Permalink
move rosbridge code to dashboard, delete the urc_teleop folder
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiramg2021 committed Oct 26, 2023
1 parent fa37ddc commit 88f7f34
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
33 changes: 33 additions & 0 deletions urc_dashboard/CMakeLists.txt
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()

28 changes: 28 additions & 0 deletions urc_dashboard/launch/websocket.launch.py
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
])

0 comments on commit 88f7f34

Please sign in to comment.