Update www directory only on catkin_make

This commit is contained in:
Oleg Kalachev
2021-12-10 09:55:53 +03:00
parent 0f438235c2
commit 8a8dc8b78f
3 changed files with 8 additions and 5 deletions

View File

@@ -60,3 +60,8 @@ rosversion image_view
# validate examples are present
[[ $(ls /home/pi/examples/*) ]]
# validate web tools present
[ -d /home/pi/.ros/www ]
[ "$(readlink /home/pi/.ros/www/clover)" = "/home/pi/catkin_ws/src/clover/clover/www" ]
[ "$(readlink /home/pi/.ros/www/clover_blocks)" = "/home/pi/catkin_ws/src/clover/clover_blocks/www" ]

View File

@@ -84,9 +84,4 @@
<!-- Send fake GCS heartbeats. Set to "true" for upstream PX4 -->
<param name="use_fake_gcs" value="false"/>
</node>
<!-- Update static directory -->
<node pkg="roswww_static" name="roswww_static" type="main.py" clear_params="true">
<param name="default_package" value="clover"/>
</node>
</launch>

View File

@@ -10,3 +10,6 @@ install(DIRECTORY launch DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
catkin_install_python(PROGRAMS main.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
add_custom_target(roswww_static ALL
COMMAND rosrun roswww_static main.py)