qboticslabs / mastering_ros

This repository contains exercise files of the book "Mastering ROS for Robotics Programming"
https://www.packtpub.com/hardware-and-creative/mastering-ros-robotics-programming
468 stars 282 forks source link

Nothing happens when run pick_and_place.py #38

Open ChenyangRan opened 5 years ago

ChenyangRan commented 5 years ago

Hi, I'm a beginner to ros. I tried the guidence in chapter7 and nothing happens. I have catkin_make the moveit_simple_grapes successfully. Now I'm crazy beacuse of this issues. When I typed the following : roslaunch seven_dof_arm_config demo.launch demo.launch -> work fine roslaunch seven_dof_arm_gazebo grasp_generator_server.launch -> work fine rosrun seven_dof_arm_gazebo pick_and_place.py -> work but have some trouble. Nothing happens in rviz, and it shows Pick up goal failed!: Timeout reached [WARN] [WallTime: 1558935438.075925] Pick up failed! Retrying ... [ERROR] [WallTime: 1558935444.419281] Pick up goal failed!: Timeout reached [WARN] [WallTime: 1558935444.421875] Pick up failed! Retrying The picture maybe the cause. @78RCSUGX0$C~GL%_P14G{J I run these code in VM. ubuntu14.04 ros-indigo gazebo 7

qboticslabs commented 5 years ago

Hi @GoogleMike

I think we have to do some trial and error in this case. The pick and place is a series of commands to the arm to pick the object, grasp the object and place the object. The MoveIt! is executing each command. I would suggest you run some example to do IK alone to make sure MoveIt! IK is working well if it is working, we may need to isolate each section of the code and need to check which is causing the issue.

I also doubt VM causing issues, this kind of behaviour can be expected when we testing with VM, mainly due to graphics driver related issues.