-
Notifications
You must be signed in to change notification settings - Fork 7
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
Improvements, fixes #19
base: master
Are you sure you want to change the base?
Conversation
Disable debug mode by default
@simonschmeisser what do you think of these changes? |
<link name="${prefix}jaw_base"/> | ||
<link name="${prefix}finger_base"/> | ||
|
||
<joint name="${prefix}finger_left_joint" type="prismatic"> |
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.
<joint name="${prefix}finger_left_joint" type="prismatic"> | |
<joint name="${prefix}finger_left" type="prismatic"> |
we typically use finger_left
for the joint and finger_left_frame
for the link but I'll check if that is standardized somewhere
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.
@simonschmeisser any update here?
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.
It appears not to be standardized. I'm fine with either one
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.
Note that finger_left
is the default in WSG50ROSNode.cpp line 52 or so
#define MAXWIDTH 110.0 | ||
#endif | ||
// #ifndef MAXWIDTH | ||
// #define MAXWIDTH 110.0 -> use parameter instead to allow using wsg50-210 as well |
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.
You probably want to remove that instead of commenting it out
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.
Well, actually, I like the information why MAX_WIDTH
is not set here, like it is done for all the other parameters of the WSG50-110.
@@ -44,6 +41,7 @@ | |||
|
|||
// Gripper Default Values | |||
// | |||
#define MAXWIDTH 110.0 |
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.
why do we need the maxwidth here and will this collide with a 210/68 gripper size?
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.
It is used in L.646 as default value, if you do not set the parameter max_width
. Since that is the majority of cases for this driver, I kept it..
@@ -638,13 +634,15 @@ int main(int argc, char** argv) | |||
// | |||
std::string ip, port; | |||
std::string jointName, openingJointName; | |||
double max_width; | |||
ros::param::param<std::string>("~ip", ip, DEFAULTIP); | |||
ros::param::param<std::string>("~port", port, DEFAULTPORT); | |||
ros::param::param<std::string>("~joint_name", jointName, DEFAULTJOINTNAME); | |||
ros::param::param<std::string>("~opening_joint_name", openingJointName, DEFAULTOPENINGJOINTNAME); |
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.
ros::param::param<std::string>("~opening_joint_name", openingJointName, DEFAULTOPENINGJOINTNAME); |
is this still used?
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.
the macro in line 53 can also be removed
<link name="${prefix}jaw_base"/> | ||
<link name="${prefix}finger_base"/> | ||
|
||
<joint name="${prefix}finger_left_joint" type="prismatic"> |
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.
It appears not to be standardized. I'm fine with either one
@@ -638,13 +634,15 @@ int main(int argc, char** argv) | |||
// | |||
std::string ip, port; | |||
std::string jointName, openingJointName; |
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.
std::string jointName, openingJointName; | |
std::string jointName; |
<link name="${prefix}jaw_base"/> | ||
<link name="${prefix}finger_base"/> | ||
|
||
<joint name="${prefix}finger_left_joint" type="prismatic"> |
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.
Note that finger_left
is the default in WSG50ROSNode.cpp line 52 or so
Several bug fixes, improvements. API breaking: changes urdf finger joints and uses std::empty services instead of custom empty services. Applies support for wsg50-210 and possibly wsg50-68 by introducing a max_width parameter.