start-jsk/rtmros_common — pull request #569 by 130s (2014-10-11 00:30:16+00:00)
Title: (hrpsys_tools) Add rtm commandline module.

With the risk of similar/same functionality existing somewhere,

I think unifying the RTM initial process reduces maintenance work and avoids unnecessary errors.

Full example usage can be seen [here](https://github.com/130s/rtmros_nextage/blob/5dd9ac910a4371ae0fbbcc5f7a3830e026905439/nextage_ros_bridge/script/nextage0.5.py), which is going to be pull-requested once this PReq is approved. In a nutshell, in a rtm client script (e.g. `/nextage_ros_bridge/nextage.py`) all you need becomes only a few lines to instantiate your RTM client class:

```
if __name__ == '__main__':
commandline = rtm_commandline.RtmCommandline('HiroOpen') # Robot name can be anything.
args = commandline.init_commandline()
robot = nxc = nextage_client.NextageClient()
robot.init(robotname=args.robot, url=args.modelfile)
```