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

Mixed usage of Tab and space #7

Closed
yepw opened this issue Jun 23, 2022 · 2 comments
Closed

Mixed usage of Tab and space #7

yepw opened this issue Jun 23, 2022 · 2 comments

Comments

@yepw
Copy link

yepw commented Jun 23, 2022

Hi, thank you for upgrading the package to Ros noetic. It works perfectly with our gripper.

The only small thing is that my python interpreter complained about mixed usage of tab and space in robotiq_2f_gripper_control/src/robotiq_2f_gripper_control/baseRobotiq2FGripper.py.

It will be great if you can fix it.

#Verify that each variable is in its correct range
command.rACT = max(0, command.rACT)
command.rACT = min(1, command.rACT)
command.rGTO = max(0, command.rGTO)
command.rGTO = min(1, command.rGTO)
command.rATR = max(0, command.rATR)
command.rATR = min(1, command.rATR)
command.rPR = max(0, command.rPR)
command.rPR = min(255, command.rPR)
command.rSP = max(0, command.rSP)
command.rSP = min(255, command.rSP)
command.rFR = max(0, command.rFR)
command.rFR = min(255, command.rFR)
#Return the modified command
return command
def refreshCommand(self, command):
"""Function to update the command which will be sent during the next sendCommand() call."""
#Limit the value of each variable
command = self.verifyCommand(command)

lianghongzhuo added a commit that referenced this issue Jun 24, 2022
@lianghongzhuo
Copy link
Member

Hi, Thank you for your feedback, I hope this commit fixes your problem. 6d0d747

@lianghongzhuo
Copy link
Member

close in favor of 6d0d747

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants