ros-industrial-consortium / scan_n_plan_workshop

53 stars 30 forks source link

Issue- Connection between Nodes #11

Closed hakan6710 closed 1 year ago

hakan6710 commented 2 years ago

Hello,

i started the nodes as explained in the readme. I cant use the simulation. After pressing ,,Get Detailed Scan", it fails with the following message:

process[joint_trajectory_action-5]: started with pid [1388697]
[ WARN] [1658326459.116264607]: Trajectory state not received for 1.000000 seconds
[ERROR] [1658326589.212103200]: Failed to connect to server, rc: -1. Error: 'Connection timed out' (errno: 110)
[ERROR] [1658326589.212125117]: Failed to connect to server, rc: -1. Error: 'Connection timed out' (errno: 110)
[ERROR] [1658326589.212192764]: Failed to connect to server, rc: -1. Error: 'Connection timed out' (errno: 110)
[ WARN] [1658326589.213150786]: Unable to read velocity limits from 'robot_description' param.  Velocity validation disabled.
[FATAL] [1658326589.216690836]: Failed to connect

I have the default version of "motoman.git". The given instruction did not work for me, because the branch could not be found. Could that be the problem? Which version of it is needed? Am I missing something else?

Is there a more detailed documentation of the workshop or any videos?

Thanks for any help!

gavanderhoorn commented 2 years ago

This is a problem with how you've configured motoman_driver. Not with the packages in this repository.


Checking the readme more: do you actually have a real HC10? The command to start motoman_driver can only be used with real hardware.

marip8 commented 2 years ago

If you want to run the demo in simulation mode, you only need to run the following command:

ros2 launch snp_bringup_ros2 start.launch.xml

Is there a more detailed documentation of the workshop or any videos?

I have a few live videos and screen captures saved locally. I'll see about putting them in the repository or in a discussion for reference. I also discussed and demo-ed this repository last week during our ROS-I Americas developer meeting. We recorded the meeting, so I can link the recording here when I find it

marip8 commented 2 years ago

Is there a more detailed documentation of the workshop or any videos?

Here is a link to the recorded community meeting where I discussed how this repository works and showed a demo

hakan6710 commented 2 years ago

Hello gavanderhoorn and marip8,

thank you for your replies. I had a misunderstanding of the motoman_driver , i thought it was also able to simulate.

I tried the command suggested for the real way of simulating and had a problem. ,,Generate Motion Plan" did not work.

My usage:

  1. launch node
  2. ,,get detailed scan"
  3. ,,generate tool path plan"
  4. ,,get motion plan" -> fails

Log:

[snp_motion_planning_node-7] Error: Discrete collision detected between 'link_4_r' and 'table' with distance -0.0330511
[snp_motion_planning_node-7]
[snp_motion_planning_node-7] at line 148 in /home/roslab/Desktop/sndp_workspace/src/tesseract/tesseract_environment/src/utils.cpp
[snp_motion_planning_node-7] Error: Discrete collision detected between 'ee' and 'link_4_r' with distance -0.0663848
[snp_motion_planning_node-7]
[snp_motion_planning_node-7] at line 148 in /home/roslab/Desktop/sndp_workspace/src/tesseract/tesseract_environment/src/utils.cpp
[snp_motion_planning_node-7] Error: Discrete collision detected between 'link_4_r' and 'scan' with distance -0.0537901
Waiting to calibrate...
Observation service is not available
Sending scan approach motion goal
execute scan approach completed!
Waiting to start reconstruction...
Successfully executed scan approach motion
start reconstruction completed!
Waiting to execute scan...
Sending scan trajectory goal
execute scan completed!
Waiting to stop reconstruction...
Successfully executed scan motion
stop reconstruction completed!
Waiting to execute scan departure...
Sending scan departure motion goal
Successfully completed scan and surface reconstruction
execute scan departure completed!
Waiting to plan tool paths...
plan tool paths completed!
Waiting to perform motion planning...
Failed to create motion plan
perform motion planning failed
Waiting to attempt again...
hakan6710 commented 2 years ago

Am I missing something else?

Thank you for your help in advance.

marip8 commented 2 years ago

We made a number of changes in #5 that dramatically improve planning success and control of the tool path. I would suggest building off that branch and trying again. I think most of the motion planning failures due to collision are caused by the robot reaching waypoints that are too close to the table. We get around this by selecting a sub-region on top of the mesh for tool path planning, rather than generating a tool path over the full extent of the mesh.

You could also replace the simulation mesh with a mesh of your own (using this argument) where a tool path generated on that mesh won't put the robot in collision.

marip8 commented 1 year ago

Closing; feel free to re-open if this issue is still unresolved