-
Notifications
You must be signed in to change notification settings - Fork 73
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
Elec lead #189
Conversation
Electrical platform model added that uses new mesh dave_demo_launch/dave_electrical_mate.launch and dave_demo_launch/dave_plug_and_socket_demo.launch both updated to use the new electrical platform. Plug and socket model names were changed (m_to_f_plug & m_to_f_socket) to differentiate them from the new plug and receptacle models (the new models are female-plug-to-male receptacle) which will be added shortly.
Added female plug to male socket models and URDF (xacro) templates. Incorporated updated models into the dave_demo_launch/dave_plug_and_socket_demo.launch demo. The demo now contains one of the male-to-female plug/socket pairs and two of the female-to-male plug/receptacle pairs.
Also did some other code cleanup
Decreasing the scale a little bit to make the fit more forgiving.
Also updated all of the models to avoid name conflicts if they're used multiple times in the same world.
Force is calculated as the force applied to the plug link by either the sensor plate link (during plug insertion) or the gripper links (during plug extraction). Forces are published as a 3D vector in the plug link frame (since calculated force is from different links during insertion and extraction, it will always be positive along the X axis). Only force in the X direction is used to determine whether or not the lock or unlock threshold has been met.
Is the example Maybe we could add the first roslaunch to the existing wiki, add a screenshot and explain the differences between the two examples? |
I was able to run both roslaunch examples and see that the
@dtdavi1 Sound like a plan? |
I've updated the wiki some to better differentiate between the two demos (the dave_plug_and_socket_demo is towards the end). I'm working on a video demo and will finalize that before the release. |
For a quick test of the plugin functionality, the world file that is used in the dave_electrical_mate.launch demo can be modified as follows: This will position the plug in the socket's opening (but not engaged) upon startup. The prismatic joint will be formed right after startup, but there won't be enough applied force to lock it. If you maneuver the RexROV to the stand and lightly bump the plug downward, the joint should lock almost immediately (and should be indicated in the terminal window). Unlocking will still require you to grab the plug handle with the gripper and pulling upwards (but that's much easier than doing the whole insertion evolution). |
@dtdavi1 Both of the launch examples run for me. I ran the example you suggest to start with the plug aligned. When I nudge it with the ROV I get some errors reported to the terminal:
Are these expected? |
@bsb808 They're all either expected or at least not surprising. Here's a summary of what the stream is telling you: |
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.
Ready to merge
@bsb808 Sounds good. My best guess is that the error is associated with a race condition that occurs when the joint is locked and then removed too quickly (which occurs somtimes when the insertion is rough). |
Updated flying lead functionality can be tested with either of the following demos (only the second includes the new plug/receptacle model):
or
Updates include the following:
Force calculations for insert & extract aligned with the plug link
New meshes and models
Male-to-female and female-to-male plug/receptacle combos
Underwater platform model (incorporated into both SDF and URDF demos)
Added ROS functionality to expose calculated force applied to the plug link during insert & extract
rqt_plot /m_to_f_plug/appliedForce/vector
to visualize the messageTutorial updates to account for changes