Rename roswww_static main.py to update

This commit is contained in:
Oleg Kalachev
2021-12-10 21:27:43 +03:00
parent 278aa7b58b
commit a82736f041
5 changed files with 6 additions and 6 deletions

View File

@@ -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>

View File

@@ -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)

View File

@@ -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

View File

@@ -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>