Skip to content

Commit

Permalink
Merge pull request #1000 from wkentaro/record-axis-camera-launch
Browse files Browse the repository at this point in the history
[jsk_tools] Add launch to record axis camera
  • Loading branch information
garaemon committed Jun 17, 2015
2 parents f1e668a + 20057a8 commit 6afcae9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions jsk_tools/launch/record_axis_camera.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<launch>
<arg name="filename" default="output.avi" />
<arg name="hostname" default="133.11.216.141" />
<arg name="username" default="root" />

<arg name="ask_password" default="true" />
<arg unless="$(arg ask_password)" name="password" />

<group ns="axis">
<node name="axis_camera" pkg="axis_camera" type="axis.py" >
<param name="hostname" value="$(arg hostname)" />
<param name="username" value="$(arg username)" />
<param if="$(arg ask_password)" name="password"
command="python -c 'import getpass;passwd=getpass.getpass(&quot;Axis password?: &quot;);print(passwd)'" />
<param unless="$(arg ask_password)" name="password" value="$(arg password)" />
</node>
<node name="image_transport_republisher" pkg="image_transport" type="republish" args="compressed">
<remap from="in" to="image_raw" />
<remap from="out" to="image_raw" />
</node>
<node name="video_recorder" pkg="image_view" type="video_recorder" output="screen">
<remap from="image" to="image_raw" />
<param name="filename" value="$(arg filename)" />
</node>
</group>
</launch>
1 change: 1 addition & 0 deletions jsk_tools/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<run_depend>rosgraph_msgs</run_depend>
<run_depend>rospy</run_depend>
<run_depend>rqt_reconfigure</run_depend>
<run_depend>axis_camera</run_depend>
<!-- <build_depend>mjpeg_server</build_depend> -->
<!-- <run_depend>mjpeg_server</run_depend> -->
<!-- <test_depend>mjpeg_server</test_depend> -->
Expand Down

0 comments on commit 6afcae9

Please sign in to comment.