Skip to content

Booooooosh/24662_PS2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description of this package

This package is an interface to MoveIt motion planning library. You will learn to use ros service to send commands to MoveIt, thus making the manipulator moving around.

Some useful links:

This is a pretty good tutorial for learning ROS. What is ROS?: Please look @ the tutorial.

It would be better if you can understand some basic concepts like workspace, package, message, service... before you start PS2, so the following are some useful links that get you prepared:

Run the package:

  1. Download the tar file ‘denso_robot_plugin.tar’
  2. Open a terminal (terminator recommended)
  3. Untar it: tar -xvf denso_robot_plugin.tar
  4. Go into the folder: cd denso_robot_plugin
  5. Compile the code: catkin_make
  6. Source the resulting ros packages: source devel/setup.bash
  7. Run the denso_robot_ros package with MoveItRviz & Gazebo: roslaunch denso_robot_bringup denso_robot_bringup.launch
  8. Open another terminal (Ctrl+Shft+E in Terminator) and run the denso_robot_interface: roslaunch denso_robot_interface denso_robot_interface.launch
  9. You should be able to two GUIs: One is the GAZEBO interface and another is the MoveIt window. If either of them didn't show up, try restarting the processed by CTRL-C and repeat step 7 and 8
  10. Now you should be able to start working on PS2 using ros service provided by denso_robot_interface node. Details of services can be found in the following section.

Service provided:

ROS provides a useful command-line tool for checking and calling currently available services, see here for more details: http://wiki.ros.org/rosservice. Basically, the syntax for calling a rosservice is: rosservice call [service_name] [*kargs...]

Here we listed the services you might need for this Problem Set: |-------------------------------------------|--------------------|-----------------------|------------------------------------------| | service_name | arguments | return value | description | |-------------------------------------------|--------------------|-----------------------|------------------------------------------| | /denso_robot_interface/mark_state | State Name | Success? [Reason] | mark down the current robot state | | /denso_robot_interface/show_states | Empty | Success? [Reason] | show all the states that is marked down | | /denso_robot_interface/clear_states | Empty | Success? [Reason] | clear all the states that is marked down | | /denso_robot_interface/upload_states | File Name | Success? [Reason] | save the marked-down states to YAML file | | /denso_robot_interface/execute_trajectory | Empty | Success? [Reason] | execute the marked-down states in order | | /denso_robot_interface/go_to | geometry_msgs/Pose | Success? [Reason] | go to a Pose target | | /denso_robot_interface/translation | float64[] | Success? [Percentage] | follow a translation-only trajectory | |-------------------------------------------|--------------------|-----------------------|------------------------------------------| Note that you can always use [TAB] to perform command auto-completion (including arguments). If you pressed [TAB], waited and nothing happened, do source devel/setup.bash in the current command window and try again mark_state ONLY save the states dynamically, that is, if you restart the ROS, everything you've been working on will be lost. Use upload_states to save the states on your hard drive. The default folder for your saved YAML file is "denso_robot_interface/yaml/your_file.yaml"

Hints for this Problem Set:

For PS2-1: All you need to do is to move the manipulator to the ideal pose, mark down its current pose. This will, in the end, give you a "trajectory" that you can execute.

For PS2-2: Please take a look @ "denso_robot_interface/nodes/ps2-2.py". What you need to do is to compose a trajectory using geometry_msgs/Pose, you can find the details of this ROS message here.

TIPS:

  1. Well, all of these are Open Source Software, so don't expect them to be as robust as your Microsoft Office. RViz and GAZEBO tends to crash for no reason(this does not mean that it should take the blame every time it crashes). Here is a troubleshooting page for RViz and GAZEBO.
  2. The virtual box is kinds of slow... So, be patient... You can speed it up by using more CPU. Change that in the VirtualBox setting.
  3. If you are not familiar with Quaternion, here is a description. And there are many converters online, too.
  4. Google is always your best friend when developing!

About

DENSO MoveIt plugins for 24662 PS2

Resources

Stars

Watchers

Forks

Packages

No packages published