-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add robot init function to create *ri* and robot instance #222
Conversation
…hrp2 and jsk robots according to jsk-ros-pkg/jsk_pr2eus#222
bef9121
to
7d68792
Compare
…tag and rospack plugin functionality (http://wiki.ros.org/pluginlib).
… function rostest. Add rostest execution for it in CMakeLists.txt.
Travis passed thanks for #223. |
I think you'd better to leave this PR open for a while, if you want promote this new way of initialize
|
This PR is discussed more than a half year,
Defined in jskeus : https://github.com/euslisp/jskeus/blob/master/irteus/irtutil.l#L369.
Oh, is this resolved by ueda's commit?? For this PR, originally I did not use
Yes, if we want to initialize our own robot from
Currently, hrpsys_ros_bridge_tutorials and pr2eus have this export tag. |
This PR is leave more than a half year, without any discussion. This means
|
(robot-name-list | ||
(if (fboundp 'ros::rospack-plugins) | ||
(mapcar #'cdr (ros::rospack-plugins "pr2eus" "robot-name")) | ||
(piped-fork-returns-list "rospack plugins --attrib=robot-name pr2eus | cut -d\\ -f2"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
roseus < 1.4.0 does not support ros::rospack-plugins
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, so i used fboundp to check existence.
Add robot init function to create
*ri*
and robot instance according to the following discussion:#175
(robot-init) ;; without ros param
-> error.(robot-init "pr2")
-> OK(robot-init) ;; with /robot/type setting
-> OK. Create*ri*
and robot from /robot/type.This function searches robot interface file from rospack plugins.
If user want to use their own robots from robot-init function,
please write export tag in [user_defined_rospackage]/package.xml as pr2eus/package.xml.
I also add test code for it (robot-init-test.l).