mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-29 22:39:33 +00:00
Rename roswww_static main.py to update
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
Update www using <code>rosrun roswww_static main.py</code>.
|
||||
Update www using <code>rosrun roswww_static update</code>.
|
||||
</p>
|
||||
|
||||
<div class="version"></div>
|
||||
|
||||
@@ -7,9 +7,9 @@ catkin_package()
|
||||
|
||||
install(DIRECTORY launch DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
|
||||
|
||||
catkin_install_python(PROGRAMS main.py
|
||||
catkin_install_python(PROGRAMS update
|
||||
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
||||
)
|
||||
|
||||
add_custom_target(roswww_static ALL
|
||||
COMMAND rosrun roswww_static main.py)
|
||||
COMMAND rosrun roswww_static update)
|
||||
|
||||
@@ -6,10 +6,10 @@ Note: you should configure your web server to make it follow symlinks.
|
||||
|
||||
## Instructions
|
||||
|
||||
* Run `main.py` node and it will generate the symlinks and index file.
|
||||
* Run `update` node and it will generate the symlinks and index file: `rosrun roswww_static update`.
|
||||
* Point your static web server path to `~/.ros/www`.
|
||||
|
||||
You can rerun `main.py` if the list of installed packages changes.
|
||||
You can rerun `update` if the list of installed packages changes.
|
||||
|
||||
## Parameters
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<launch>
|
||||
<node pkg="roswww_static" name="roswww_static" type="main.py" clear_params="true" output="screen">
|
||||
<node pkg="roswww_static" name="roswww_static" type="update" clear_params="true" output="screen">
|
||||
<!-- <param name="index" value="$(find my_package)/www/index.html"/> -->
|
||||
<!-- <param name="default_package" value="my_package"/> -->
|
||||
</node>
|
||||
|
||||
Reference in New Issue
Block a user