-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from k-okada/master
add test to check import waitInput works
- Loading branch information
Showing
5 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python | ||
|
||
PKG = 'hrpsys' | ||
NAME = 'test-waitinput' | ||
|
||
import roslib; roslib.load_manifest('hrpsys') | ||
from hrpsys import hrpsys_config | ||
|
||
import unittest, sys | ||
|
||
class TestHrpsysConfig(unittest.TestCase): | ||
|
||
def test_import_waitinput(self): | ||
# https://github.com/start-jsk/rtmros_hironx/blob/groovy-devel/hironx_ros_bridge/src/hironx_ros_bridge/hironx_client.py | ||
from waitInput import waitInputConfirm, waitInputSelect | ||
self.assertTrue(True) | ||
|
||
if __name__ == '__main__': | ||
import rostest | ||
rostest.run(PKG, NAME, TestHrpsysConfig, sys.argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<launch> | ||
<!-- BEGIN:common setting --> | ||
<env name="LANG" value="C" /> | ||
<env name="ORBgiopMaxMsgSize" value="2147483648" /> | ||
<!-- END:common setting --> | ||
|
||
<node name="modelloader" pkg="openhrp3" type="openhrp-model-loader" output="screen"/> | ||
<node name="hrpsys" pkg="hrpsys" type="hrpsys-simulator" | ||
args='$(find hrpsys)/share/hrpsys/samples/PA10/PA10simulation.xml -o manager.is_master:YES -o naming.formats:%n.rtc -o exec_cxt.periodic.rate:1000000 -o manager.shutdown_onrtcs:NO -o manager.modules.load_path:$(find hrpsys)/lib -o manager.modules.preload:HGcontroller.so -o manager.components.precreate:HGcontroller -o exec_cxt.periodic.type:SynchExtTriggerEC -f $(find hrpsys)/share/hrpsys/samples/PA10/rtc.conf -o "example.RobotHardware.config_file:$(find hrpsys)/share/hrpsys/samples/PA10/RobotHardware.conf" -o "example.SequencePlayer.config_file:$(find hrpsys)/share/hrpsys/samples/PA10/PA10.conf" -o "example.StateHolder.config_file:$(find hrpsys)/share/hrpsys/samples/PA10/PA10.conf" -o "example.ForwardKinematics.config_file:$(find hrpsys)/share/hrpsys/samples/PA10/PA10.conf" -o "corba.nameservers:localhost:2809" -nodisplay -endless' | ||
output="screen" cwd="node" /> | ||
|
||
<test test-name="test_jointangle" pkg="hrpsys" type="test-jointangle.py" /> | ||
</launch> |