Only released in EOL distros:
Package Summary
Arm navigation package provided by dcgm-robotics@FIT group: - assisted arm manipulation for RViz using Interactive Markers and Warehouse Viewer - manual grasping plugin for RViz The package is partially derived from the pr2_arm_navigation package. It modifies components developed for PR2 robot so that you can use it with COB. Moreover, the package also provides several services that simplifies usage of the COB arm navigation.
- Author: Zdenek Materna (imaterna@fit.vutbr.cz), Michal Spanel (spanel@fit.vutbr.cz)
- License: LGPL
- Source: git https://github.com/ipa320/srs_public.git (branch: master)
Package Summary
An interactive arm motion planning. Developed for SRS project and Care-O-Bot robot, reusable for any robot supporting arm_navigation stack.
- Author: Zdenek Materna (imaterna@fit.vutbr.cz), Michal Spanel (spanel@fit.vutbr.cz)
- License: LGPL
- Source: git https://github.com/ipa320/srs_public.git (branch: master)
Package Summary
An interactive arm motion planning. Developed for SRS project and Care-O-Bot robot, reusable for any robot supporting arm_navigation stack.
- Author: Zdenek Materna (imaterna@fit.vutbr.cz), Michal Spanel (spanel@fit.vutbr.cz)
- License: LGPL
- Source: git https://github.com/ipa320/srs_public.git (branch: master)
Contents
Overview
Assisted arm navigation package offers similar functionality as the Warehouse Viewer - an interactive (collision free) arm motion planning. It has been designed for Care-O-Bot within the SRS project, but can be easily modified for any robot running the arm_navigation stack. It enables a user to start the arm planning through RVIZ plugin with a simple interface. The goal position of the end effector can be set by a 6 DOF Interactive Marker or by using SpaceNavigator device. For collision free trajectory planning a collision map produced by Environment Model is used.
Current version has been tested only with ROS Electric.
Assisted arm navigation is divided into following packages:
srs_assisted_arm_navigation: Main functionality.
srs_assisted_arm_navigation_msgs: Definition of services and action interface.
srs_assisted_arm_navigation_ui: RVIZ plugin.
For example of how this functionality can be integrated into more complex system, please take a look on srs_arm_navigation_tests, where is the integration into SRS structure in form of SMACH generic states implemented.
Screenshots
This is how it looks in RVIZ when user starts arm planning. There is 6 DOF interactive marker, marker representing arm (green) and marker for the object to be grasped.
Collision with environment or with the object is clearly indicated as well as the situation when desired goal position is out of reach.
When the trajectory is planned, user can play its animation several times and decide if it's reasonable and safe.
User interface consists of few controls and contains description of the task for user (if using action interface to give tasks to user).
More detailed user interface documentation can be found on its own page.
ROS API
Assisted arm navigation node communicates with user interface using set of services. There are also some services for adding collision objects etc. The most important is action interface which can be used to ask user to perform some task.
Actionlib interface
Action Subscribed Topics
/but_arm_manip/manual_arm_manip_action/goal (srs_assisted_arm_navigation_msgs/ManualArmManipActionGoal)
- A task for user.
- A request to cancel given task.
Action Published Topics
/but_arm_manip/manual_arm_manip_action/feedback (srs_assisted_arm_navigation_msgs/ManualArmManipActionFeedback)
- Feedback contains the current state of the task.
- Provides status information on the goals that are sent to the assisted_arm_navigation action.
- Result contains information about task from user (succeeded, failed etc.).
Topics, services, parameters
Subscribed Topics
/spacenav/joy (sensor_msgs/Joy)- tbd
- tbd
- tbd
Published Topics
/but_arm_manip/state (srs_assisted_arm_navigation_msgs/AssistedArmNavigationState)- A state of arm navigation.
Services
/but_arm_manip/arm_nav_new (srs_assisted_arm_navigation_msgs/ArmNavNew)- Called from user interface, when there is a request for new trajectory planning.
- Plan from current position to the goal position.
- Visualize trajectory.
- Execute trajectory.
- Cancel current planning.
- Task was successful (user pressed "Success" button).
- User was not able to finish given task.
- Refresh planning scene.
- Add bounding box of object to the planning scene.
- Remove all collision objects.
- Set collision object to be attached.
- Move virtual end effector to some absolute position.
- Move virtual end effector relatively.
- Enable/disable artificial collision object attached to gripper.
- User pressed "Repeat" button (if it was allowed by action).
- Undo / redo.
- Stop execution of trajectory.
Parameters
~arm_planning/arm_planning/inflate_bb (double, default: "1.0")- Bounding box of each object inserted into planning scene will be inflated by this factor.
- Planning will be performed in this coordinate system.
- End effector link.
- Enable/disable interactive markers for all joints.
- If the object inserted into the planning scene should be selectable or not.
- Artificial collision object (when enabled) will be attached to this link.
- Default state of the artificial collision object.
- Enables usage of Space Navigator control.
- Enables usage of RVIZ camera position to make control of end effector in user perspective. Camera position must be published as TF transformation. There is plugin for publishing this in srs_env_model_ui package.
- TF frame for RVIZ camera.
- Maximal value for data from Space Navigator. Higher values will be limited.
- Threshold for normalized values (current / max_val). Must be in <0.0, 0.5> range.
- Step for changes of end effector interactive marker position.
- List of arm links.
- Service for communication with Environment Server.
- Constraint aware IK service.
- Planner service name.
- Trajectory filter service name.
- Topic for publishing visualization markers.
- End effector link for which we perform IK.
- Arm group.
- Arm controller action.
Installation
install COB stacks from Ubuntu repository or from git (see installation instructions)
- checkout srs and srs_public git repositories
- compile srs_assisted_arm_navigation package
rosmake srs_assisted_arm_navigation
Usage
First, please take a look on how to install and use user interface for assisted arm manipulation.
For starting COB simulation, actionlib server use this:
roslaunch srs_assisted_arm_navigation but_arm_nav_sim.launch
and then next command to start user interface (RVIZ):
roslaunch srs_assisted_arm_navigation_ui rviz.launch
There is an example of a rospy script which can be used to "trigger" manipulation task. Run it and operator should be asked for action by messagebox from RVIZ plugin.
1 #!/usr/bin/env python
2 import roslib; roslib.load_manifest('your_package')
3 import rospy
4 import actionlib
5
6 from srs_assisted_arm_navigation_msgs.msg import *
7
8 def main():
9
10 rospy.init_node('arm_manip_action_test')
11 rospy.loginfo("Node for testing actionlib server")
12
13 client = actionlib.SimpleActionClient('/but_arm_manip/manual_arm_manip_action',ManualArmManipAction)
14
15 rospy.loginfo("Waiting for server...")
16 client.wait_for_server()
17 goal = ManualArmManipGoal()
18
19 goal.allow_repeat = False
20 goal.action = "Move arm to arbitrary position"
21 goal.object_name = ""
22
23 client.send_goal(goal)
24
25 client.wait_for_result()
26 rospy.loginfo("I have result!! :-)")
27
28 result = client.get_result()
29
30 if result.success:
31 rospy.loginfo("Success!")
32
33 if result.failed:
34 rospy.loginfo("Failed :-(")
35
36 rospy.loginfo("Time elapsed: %ss",result.time_elapsed.to_sec())
37
38 if __name__ == '__main__':
39 main()
For instructions on how to test SRS scenarios, please see srs_arm_navigation_tests.
How to adapt it for your robot
Generate planning configuration using wizard.
- TBD...