Skip to content

Commit c4f89d0

Browse files
committed
run lint and prettier
1 parent 7796272 commit c4f89d0

File tree

1 file changed

+28
-24
lines changed

1 file changed

+28
-24
lines changed

src/niryo_one_python_generators.js

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ Blockly.Blocks['niryo_one_move_joints'] = {
118118
this.setPreviousStatement(true, null);
119119
this.setNextStatement(true, null);
120120
this.setColour(movement_color);
121-
this.setTooltip('Give all 6 joints to move the robot. Joints are expressed in radians.');
121+
this.setTooltip(
122+
'Give all 6 joints to move the robot. Joints are expressed in radians.'
123+
);
122124
this.setHelpUrl('');
123125
}
124126
};
@@ -161,7 +163,9 @@ Blockly.Blocks['niryo_one_move_pose'] = {
161163
this.setPreviousStatement(true, null);
162164
this.setNextStatement(true, null);
163165
this.setColour(movement_color);
164-
this.setTooltip('Move robot end effector pose to a (x, y, z, roll, pitch, yaw, frame_name) pose. x, y & z are expressed in meters / roll, pitch & yaw are expressed in radians');
166+
this.setTooltip(
167+
'Move robot end effector pose to a (x, y, z, roll, pitch, yaw, frame_name) pose. x, y & z are expressed in meters / roll, pitch & yaw are expressed in radians'
168+
);
165169
this.setHelpUrl('');
166170
}
167171
};
@@ -205,7 +209,9 @@ Blockly.Blocks['niryo_one_set_arm_max_speed'] = {
205209
this.setPreviousStatement(true, null);
206210
this.setNextStatement(true, null);
207211
this.setColour(movement_color);
208-
this.setTooltip('Limit arm max velocity to a percentage of its maximum velocity. Should be between 1 & 100');
212+
this.setTooltip(
213+
'Limit arm max velocity to a percentage of its maximum velocity. Should be between 1 & 100'
214+
);
209215
this.setHelpUrl('');
210216
}
211217
};
@@ -344,7 +350,9 @@ Blockly.Blocks['niryo_one_pick_from_pose'] = {
344350
this.setPreviousStatement(true, null);
345351
this.setNextStatement(true, null);
346352
this.setColour(movement_color);
347-
this.setTooltip('Execute a picking from a pose. A picking is described as: going over the object, going down until height = z, grasping with tool, going back over the object');
353+
this.setTooltip(
354+
'Execute a picking from a pose. A picking is described as: going over the object, going down until height = z, grasping with tool, going back over the object'
355+
);
348356
this.setHelpUrl('');
349357
}
350358
};
@@ -357,7 +365,9 @@ Blockly.Blocks['niryo_one_place_from_pose'] = {
357365
this.setPreviousStatement(true, null);
358366
this.setNextStatement(true, null);
359367
this.setColour(movement_color);
360-
this.setTooltip('Execute a placing from a position. A placing is described as: going over the place, going down until height = z, releasing the object with tool, going back over the place');
368+
this.setTooltip(
369+
'Execute a placing from a position. A placing is described as: going over the place, going down until height = z, releasing the object with tool, going back over the place'
370+
);
361371
this.setHelpUrl('');
362372
}
363373
};
@@ -637,7 +647,9 @@ Blockly.Blocks['niryo_one_activate_electromagnet'] = {
637647
this.setPreviousStatement(true, null);
638648
this.setNextStatement(true, null);
639649
this.setColour(tool_color);
640-
this.setTooltip('Activate electromagnet associated to electromagnet_id on pin_id');
650+
this.setTooltip(
651+
'Activate electromagnet associated to electromagnet_id on pin_id'
652+
);
641653
this.setHelpUrl('');
642654
}
643655
};
@@ -652,7 +664,9 @@ Blockly.Blocks['niryo_one_deactivate_electromagnet'] = {
652664
this.setPreviousStatement(true, null);
653665
this.setNextStatement(true, null);
654666
this.setColour(tool_color);
655-
this.setTooltip('Deactivate electromagnet associated to electromagnet_id on pin_id');
667+
this.setTooltip(
668+
'Deactivate electromagnet associated to electromagnet_id on pin_id'
669+
);
656670
this.setHelpUrl('');
657671
}
658672
};
@@ -745,7 +759,8 @@ Blockly.Blocks['niryo_one_vision_pick'] = {
745759
this.setColour(vision_color);
746760
this.setHelpUrl('');
747761
this.setTooltip(
748-
'Picks the specified object from the workspace. This function has multiple phases: 1. detect object using the camera 2. prepare the current tool for picking 3. approach the object 4. move down to the correct picking pose 5. actuate the current tool 6. lift the object');
762+
'Picks the specified object from the workspace. This function has multiple phases: 1. detect object using the camera 2. prepare the current tool for picking 3. approach the object 4. move down to the correct picking pose 5. actuate the current tool 6. lift the object'
763+
);
749764
this.setInputsInline(false);
750765
}
751766
};
@@ -1173,15 +1188,13 @@ BlocklyPy['niryo_one_update_tool'] = function (block) {
11731188

11741189
BlocklyPy['niryo_one_open_gripper'] = function (block) {
11751190
var number_open_speed = block.getFieldValue('OPEN_SPEED');
1176-
var code =
1177-
'n.open_gripper( ' + number_open_speed + ')\n';
1191+
var code = 'n.open_gripper( ' + number_open_speed + ')\n';
11781192
return code;
11791193
};
11801194

11811195
BlocklyPy['niryo_one_close_gripper'] = function (block) {
11821196
var number_close_speed = block.getFieldValue('CLOSE_SPEED');
1183-
var code =
1184-
'n.close_gripper(' + number_close_speed + ')\n';
1197+
var code = 'n.close_gripper(' + number_close_speed + ')\n';
11851198
return code;
11861199
};
11871200

@@ -1205,10 +1218,7 @@ BlocklyPy['niryo_one_setup_electromagnet'] = function (block) {
12051218
value_electromagnet_pin = value_electromagnet_pin
12061219
.replace('(', '')
12071220
.replace(')', '');
1208-
var code =
1209-
'n.setup_electromagnet(' +
1210-
value_electromagnet_pin +
1211-
')\n';
1221+
var code = 'n.setup_electromagnet(' + value_electromagnet_pin + ')\n';
12121222
return code;
12131223
};
12141224

@@ -1222,10 +1232,7 @@ BlocklyPy['niryo_one_activate_electromagnet'] = function (block) {
12221232
value_electromagnet_pin = value_electromagnet_pin
12231233
.replace('(', '')
12241234
.replace(')', '');
1225-
var code =
1226-
'n.activate_electromagnet(' +
1227-
value_electromagnet_pin +
1228-
')\n';
1235+
var code = 'n.activate_electromagnet(' + value_electromagnet_pin + ')\n';
12291236
return code;
12301237
};
12311238

@@ -1239,10 +1246,7 @@ BlocklyPy['niryo_one_deactivate_electromagnet'] = function (block) {
12391246
value_electromagnet_pin = value_electromagnet_pin
12401247
.replace('(', '')
12411248
.replace(')', '');
1242-
var code =
1243-
'n.deactivate_electromagnet(' +
1244-
value_electromagnet_pin +
1245-
')\n';
1249+
var code = 'n.deactivate_electromagnet(' + value_electromagnet_pin + ')\n';
12461250
return code;
12471251
};
12481252

0 commit comments

Comments
 (0)