-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathhrp4c.launch
45 lines (32 loc) · 1.93 KB
/
hrp4c.launch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<launch>
<arg name="KILL_SERVERS" default="false" />
<param name="use_sim_time" value="true" />
<include file="$(find hrpsys_ros_bridge_tutorials)/launch/hrp4c_startup.launch" >
<arg name="KILL_SERVERS" default="$(arg KILL_SERVERS)" />
</include>
<include file="$(find hrpsys_ros_bridge_tutorials)/launch/hrp4c_ros_bridge.launch" />
<sphinxdoc><![CDATA[
.. code-block:: bash
rosrun roseus roseus `rospack find hrpsys_ros_bridge_tutorials`/euslisp/hrp4c-pickup.l
This launch file shows an example of ros bridge for open hrp4 robot, `hrp4c.launch` file launches folloiwng two program
1. `roslaunch hrpsys_ros_bridge_tutorials hrp4c_startup.launch` : launch simulated robot environment, if you use real robot, you don't need this line
2. `roslaunch hrpsys_ros_bridge_tutorials hrp4c_ros_bridge.launch` : launch rtm ros bridge
After that, we need to invoke the client program. Following program is the example of euslisp language
3. `rosrun roseus roseus hrp4c-pickup.l` : sample euslisp script to control the robot.
.. video:: build/images/HRP4C_PickUp
:width: 600
.. video:: build/images/hrp4c_rviz
:width: 600
]]></sphinxdoc>
<test type="test-grxui.py" pkg="openhrp3" time-limit="600"
test-name="HRP4C_PickUp"
args="--max-time=30
--target-directory=$(find hrpsys_ros_bridge_tutorials)/build/images
--viewer-name='' #
--no-start-simulation
--capture-window='Irrlicht'
--check-tf='/BODY /R_HAND_J1_LINK'
--script='rosrun roseus roseus $(find hrpsys_ros_bridge_tutorials)/euslisp/hrp4c-pickup.l __log:=dummy'" /> <!-- add dummy __log/= argument to invoke roseus with non-interactive mode -->
<test type="ogv_encode.sh" pkg="jsk_tools" test-name="z_HRP4C_PickUp" args="$(find hrpsys_ros_bridge_tutorials)/build/images/HRP4C_PickUp.ogv" time-limit="1000"/>
<test type="glc_encode.sh" pkg="jsk_tools" test-name="z_hrp4c_rviz" args="$(find hrpsys_ros_bridge_tutorials)/build/images/hrp4c_rviz.glc" time-limit="2000"/>
</launch>