@@ -103,7 +103,7 @@ function isCloseEnough(jointsA: number[], jointsB: number[], maxDistance: number
103103 return true ;
104104}
105105
106- function ArmStatus ( { // MARK -- ARM STATUS
106+ function ArmStatus ( {
107107 editMode
108108 } : {
109109 editMode : boolean
@@ -219,7 +219,7 @@ function ArmStatus({ // MARK -- ARM STATUS
219219 const newPose : ArmPose = {
220220 id : Date . now ( ) ,
221221 name : poseName ,
222- path : "TODO path" ,
222+ path : "FIXME path" ,
223223 joints : currentValues ,
224224 joints_set : [ 1 , 2 , 3 , 4 , 5 , 6 ] ,
225225 joints_checked : [ 1 , 2 , 3 , 4 , 5 , 6 ] ,
@@ -316,7 +316,7 @@ function poseJoints(jointValues) {
316316 ) ;
317317}
318318
319- function PoseRequester ( { // MARK -- POSE REQUESTER
319+ function PoseRequester ( {
320320 editMode,
321321 onSelectPose
322322 } : {
@@ -328,7 +328,7 @@ function PoseRequester({ // MARK -- POSE REQUESTER
328328 const keepAlive = useRef ( false ) ;
329329= === ===
330330 const [ keepAlive , setKeepAlive ] = useState ( false ) ;
331- const [ customPoses , setCustomPoses ] = useState < ArmPose [ ] > ( [ ] ) ; // własne pozy
331+ const [ customPoses , setCustomPoses ] = useState < ArmPose [ ] > ( [ ] ) ;
332332
333333
334334> >>> >>> 9 c33c1a ( edit panel )
@@ -535,8 +535,7 @@ function PoseRequester({ // MARK -- POSE REQUESTER
535535 }
536536 } }
537537 >
538- { closeEnough ? 'Send Pose' : 'Cannot Send' }
539- { /* MARK #test sending pose */ }
538+ { closeEnough ? 'Send Pose' : 'Cannot Send' }
540539 </ div >
541540 < div
542541 className = { `${ styles [ 'pose-button' ] } ${ styles [ 'pose-abort' ] } ` }
@@ -552,7 +551,7 @@ function PoseRequester({ // MARK -- POSE REQUESTER
552551 ) ;
553552}
554553
555- function TrajectoryRequester ( ) { // MARK -- TRAJECTORY REQUESTER
554+ function TrajectoryRequester ( ) {
556555 const [ rerenderCount , setRerenderCount ] = useState ( 0 ) ;
557556 const keepAlive = useRef ( false ) ;
558557 const rerender = useCallback ( ( ) => {
@@ -669,7 +668,6 @@ function TrajectoryRequester() { // MARK -- TRAJECTORY REQUESTER
669668 } }
670669 >
671670 { closeEnough ? 'Send Pose' : 'Cannot Send' }
672- { /* MARK sending tra */ }
673671 </ div >
674672 < div
675673 className = { `${ styles [ 'pose-button' ] } ${ styles [ 'pose-abort' ] } ` }
@@ -716,7 +714,6 @@ function EditPanel({
716714 const link = document . createElement ( 'a' ) ;
717715 link . href = url ;
718716 link . download = `arm_pose_${ pose . name . replace ( / \s + / g, '_' ) } .json` ;
719-
720717 document . body . appendChild ( link ) ;
721718 link . click ( ) ;
722719
@@ -807,7 +804,6 @@ function EditPanel({
807804
808805 return (
809806 < div className = { styles [ 'edit-panel' ] } >
810- { /* TODO input import */ }
811807 < h2 className = { styles [ 'pose-header' ] } > { isReadOnly ? 'View Pose' : 'Edit Pose' } </ h2 >
812808 < div onClick = { exportToFile } className = { styles [ 'edit-button' ] } >
813809 < FontAwesomeIcon icon = { faUpload } /> Export Pose
@@ -821,8 +817,6 @@ function EditPanel({
821817 < FontAwesomeIcon icon = { faTrash } /> Delete
822818 </ div >
823819 </ div >
824-
825- { /* TODO editing panel */ }
826820 </ div >
827821 ) ;
828822}
0 commit comments