Skip to content
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

Added SetForceMode srv #20

Open
wants to merge 2 commits into
base: melodic-devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ add_service_files(
SetPayload.srv
SetSpeedSliderFraction.srv
SetIO.srv
SetForceMode.srv
)


Expand Down
21 changes: 21 additions & 0 deletions srv/SetForceMode.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# A 6d pose vector that defines the force frame relative to the base frame
geometry_msgs/PoseStamped task_frame
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether this makes sense. From what I understand, the target wrench is given in the task_frame, right? So, when using a WrenchStamped for the target wrench, the pose would be given through the frame_id.


# A 6d vector of 0s and 1s. 1 means that the robot will be compliant in the corresponding axis of the task frame
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a 6d vector anymore, a final docstring can be done once we figured out the task frame above.

bool selection_vector_x
bool selection_vector_y
bool selection_vector_z
bool selection_vector_rx
bool selection_vector_ry
bool selection_vector_rz
Comment on lines +5 to +10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether "selection_vector" is the best naming. Maybe something like "compliance_x" would be more suitable?


# A 6d vector. The forces/torques the robot will apply to its environment
geometry_msgs/WrenchStamped wrench

# An integer [1;3] specifying how the robot interprets the force frame
uint8 type
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The types should probably be explained / use constants.


# 6d vector. For compliant axes, these values are the maximum allowed tcp speed along/about the axis. For non-compliant axes, these values are the maximum allowed deviation along/about an axis between the actual tcp position and the one set by the program
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 6d vector. For compliant axes, these values are the maximum allowed tcp speed along/about the axis. For non-compliant axes, these values are the maximum allowed deviation along/about an axis between the actual tcp position and the one set by the program
# For compliant axes, these values are the maximum allowed tcp speed along/about the axis. For non-compliant axes, these values are the maximum allowed deviation along/about an axis between the actual tcp position and the one set by the program.

geometry_msgs/TwistStamped limits
---
bool success