Skip to content

Commit

Permalink
add rwt_steer package
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 committed Nov 19, 2020
1 parent c28c675 commit 7b22a18
Show file tree
Hide file tree
Showing 13 changed files with 6,129 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ PROJECTS
* [rwt_moveit](rwt_moveit/README.rst)
* [rwt_plot](rwt_plot/README.md)
* [rwt_speech_recognition](rwt_speech_recognition/README.md)
* [rwt_steer](rwt_steer/README.md)
2 changes: 0 additions & 2 deletions rwt_image_view/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ <h1><span class="glyphicon glyphicon-star"></span>rwt_image_view <small>robotweb
</div>

<div id="topic-area">

<form id="topic-form" role="form" class="form-inline">
<div class="form-group">
<label class="sr-only" for="topic-select">topic</label>
Expand All @@ -23,7 +22,6 @@ <h1><span class="glyphicon glyphicon-star"></span>rwt_image_view <small>robotweb
<button type="submit" class="btn btn-primary">view</button>
<button type="button" id="record-button" class="btn btn-success">record</button>
</form>

</div>
<div class="row">
<div id="canvas-area" class="col-md-12"></div>
Expand Down
24 changes: 24 additions & 0 deletions rwt_steer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cmake_minimum_required(VERSION 2.8.3)
project(rwt_steer)

find_package(catkin REQUIRED COMPONENTS
rosbridge_server
roswww
rwt_utils_3rdparty
)

catkin_package(
CATKIN_DEPENDS rosbridge_server roswww rwt_utils_3rdparty
)

include_directories(
${catkin_INCLUDE_DIRS}
)

install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)

install(DIRECTORY www/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/www
)
17 changes: 17 additions & 0 deletions rwt_steer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# rwt_steer

## Usage

```bash
roslaunch rwt_steer rwt_steer.launch
```

Open your browser, and access to `http://<your host name>:8000/rwt_steer/`.

for example : `http://localhost:8000/rwt_steer/`

- Control using Joystick
- Add camera topic
- Press Load video button

![rwt_steer.png](./images/rwt_steer.png)
Binary file added rwt_steer/images/rwt_steer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions rwt_steer/launch/rwt_steer.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<launch>
<arg name="launch_roswww" default="true" />
<arg name="launch_rosbridge_websocket" default="true" />
<arg name="launch_web_video_server" default="true" />

<include file="$(find roswww)/launch/roswww.launch"
if="$(arg launch_roswww)">
<arg name="port" value="8000" />
</include>

<include file="$(find rosbridge_server)/launch/rosbridge_websocket.launch"
if="$(arg launch_rosbridge_websocket)">
<arg name="port" value="9090" />
</include>

<node pkg="web_video_server" type="web_video_server"
name="web_video_server" if="$(arg launch_web_video_server)"
output="screen"
clear_params="true">
<param name="port" value="8080" />
</node>
</launch>
29 changes: 29 additions & 0 deletions rwt_steer/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<package>
<name>rwt_steer</name>
<version>0.0.3</version>
<description>The rwt_steer package</description>
<author>Yug Ajmera</author>
<maintainer email="[email protected]">Yug Ajmera</maintainer>

<license>BSD</license>
<buildtool_depend>catkin</buildtool_depend>
<build_depend>rosbridge_server</build_depend>
<build_depend>web_video_server</build_depend>
<build_depend>rwt_utils_3rdparty</build_depend>
<build_depend>roswww</build_depend>

<run_depend>rosbridge_server</run_depend>
<run_depend>rwt_utils_3rdparty</run_depend>
<run_depend>web_video_server</run_depend>
<run_depend>roswww</run_depend>


<!-- The export tag contains other, unspecified, tags -->
<export>
<!-- You can specify that this package is a metapackage here: -->
<!-- <metapackage/> -->
<!-- Other tools can request additional information be placed here -->

</export>
</package>
Loading

0 comments on commit 7b22a18

Please sign in to comment.