Prosthetic hand

Prosthetic hand preview image

1 collaborator

Default-person Shivakumar V (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by everyone
Model was written in NetLogo 3D 6.1.1 • Viewed 13 times • Downloaded 3 times • Run 0 times
Download the 'Prosthetic hand' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


## WHAT IS IT?

(a general understanding of what the model is trying to show or explain)

## HOW IT WORKS

(what rules the agents use to create the overall behavior of the model)

## HOW TO USE IT

(how to use the model, including a description of each of the items in the Interface tab)

## THINGS TO NOTICE

(suggested things for the user to notice while running the model)

## THINGS TO TRY

(suggested things for the user to try to do (move sliders, switches, etc.) with the model)

## EXTENDING THE MODEL

(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)

## NETLOGO FEATURES

(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)

## RELATED MODELS

(models in the NetLogo Models Library and elsewhere which are of related interest)

## CREDITS AND REFERENCES

(a reference to the model's URL on the web if it has one, as well as any other necessary credits, citations, and links)

Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

breed [fingers finger]
breed [palm]

fingers-own [state] ; State can represent whether the finger is open or closed

to setup
  clear-all
  create-fingers 5 [
    set shape "finger"
    set size 2
    set color blue
    set state "open"
    setxy random-xcor random-ycor
  ]

  create-palm 1 [
    set shape "circle"
    set size 3
    set color red
    setxy 0 0
  ]

  reset-ticks
end 

to control-hand
  ; Your control logic goes here
  ; For simplicity, let's close the fingers when a key is pressed
  ifelse key? "c" [
    ask fingers [set state "closed"]
  ] [
    ask fingers [set state "open"]
  ]
end 

to move-hand
  ; Your movement logic goes here
  ; For simplicity, let's move the hand forward when the "w" key is pressed
  ifelse key? "w" [
    ask turtles [fd 1]
  ] [
    ; You can add more movement conditions based on other keys
  ]
end 

to avoid-collisions
  ; Your collision avoidance logic goes here
  ; For simplicity, let's avoid collisions with the edges of the world
  ask turtles [
    if xcor < min-pxcor [set xcor min-pxcor]
    if xcor > max-pxcor [set xcor max-pxcor]
    if ycor < min-pycor [set ycor min-pycor]
    if ycor > max-pycor [set ycor max-pycor]
  ]
end 

to update-visualization
  ; Your visualization updates go here
  ; For simplicity, let's just display the fingers and palm
  ask turtles [show-turtle]
end 

to go
  control-hand
  move-hand
  avoid-collisions
  update-visualization
  tick
end 

There is only one version of this model, created 3 months ago by Shivakumar V.

Attached files

File Type Description Last updated
Prosthetic hand.png preview Preview for 'Prosthetic hand' 3 months ago, by Shivakumar V Download

This model does not have any ancestors.

This model does not have any descendants.