# HG changeset patch # User Robert McIntyre # Date 1329326754 25200 # Node ID 4c07724c4f0a91c8feabbb79e7a10b0fb092a32e # Parent bded932ef6964fc0dba4bdc8fec22d25008d66df removed useless code in movement diff -r bded932ef696 -r 4c07724c4f0a org/movement.org --- a/org/movement.org Wed Feb 15 07:12:03 2012 -0700 +++ b/org/movement.org Wed Feb 15 10:25:54 2012 -0700 @@ -16,29 +16,31 @@ *(next paragraph is from memory and needs to be checked!)* -In humans, muscles are composed of millions of sarcomeres, which can -contract to exert force. A single motor neuron might control 100-1,000 -sarcomeres. When the motor neuron is engaged by the brain, it -activates all of the sarcomeres to which it is attached. Some motor -neurons command many sarcomeres, and some command only a few. The -spinal cord generally engages the motor neurons which control few -sarcomeres before the motor neurons which control many sarcomeres. -This recruitment stragety allows for percise movements at low -strength. The collection of all motor neurons that control a muscle is -called the motor pool. The brain essentially says "activate 30% of the -motor pool" and the spinal cord recruits motor neurons untill 30% are -activated. Since the distribution of power among motor neurons is -unequal and recruitment goes from weakest to strongest, the first 30% -of the motor pool might be 5% of the strength of the muscle. +In humans, muscles are composed of muscle fibers which can contract to +exert force. The muscle fibers which compose a muscle are partitioned +into discrete groups which are each controlled by a single alpha motor +neuton. A single alpha motor neuron might control as little as three +or as many as one thousand muscle fibers. When the alpha motor neuron +is engaged by the spinal cord, it activates all of the muscle fibers +to which it is attached. The spinal cord generally engages the alpha +motor neurons which control few muscle fibers before the motor neurons +which control many muscle fibers. This recruitment stragety allows +for percise movements at low strength. The collection of all motor +neurons that control a muscle is called the motor pool. The brain +essentially says "activate 30% of the motor pool" and the spinal cord +recruits motor neurons untill 30% are activated. Since the +distribution of power among motor neurons is unequal and recruitment +goes from weakest to strongest, the first 30% of the motor pool might +be 5% of the strength of the muscle. My simulated muscles follow a similiar design: Each muscle is defined by a 1-D array of numbers (the "motor pool"). Each entry in the array -represents a motor neuron which controlls a number of sarcomeres equal -to the value of the entry. A muscle also has a scalar :strength factor -which determines the total force the muscle can exert when all motor -neurons are activated. The effector function for a muscle takes a -number to index into the motor pool, and that number "activates" all -the motor neurons whose index is lower or equal to the number. Each +represents a motor neuron which controlls a number of muscle fibers +equal to the value of the entry. Each muscle has a scalar strength +factor which determines the total force the muscle can exert when all +motor neurons are activated. The effector function for a muscle takes +a number to index into the motor pool, and then "activates" all the +motor neurons whose index is lower or equal to the number. Each motor-neuron will apply force in proportion to its value in the array. Lower values cause less force. The lower values can be put at the "beginning" of the 1-D array to simulate the layout of actual human @@ -175,14 +177,12 @@ * Adding Touch to the Worm -To the worm, I add a two new nodes which describe a single muscle. +To the worm, I add two new nodes which describe a single muscle. #+attr_html: width=755 #+caption: The node highlighted in orange is the parent node of all muscles in the worm. The arrow highlighted in yellow represents the creature's single muscle, which moves the top segment. The other nodes which are not highlighted are joints, eyes, and ears. [[../images/worm-with-muscle.png]] - - #+begin_src clojure (defn test-movement ([] (test-movement false)) @@ -219,11 +219,7 @@ (Vector3f. -4.912815, 2.004171, 0.15710819)) (.setRotation (.getCamera world) (Quaternion. 0.13828252, 0.65516764, - -0.12370994, 0.7323449)) - - (comment - (com.aurellem.capture.Capture/captureVideo - world (file-str "/home/r/proj/ai-videos/hand")))) + -0.12370994, 0.7323449))) (fn [world tpf] (muscle-display (map #(% @muscle-exertion) muscles) @@ -248,7 +244,6 @@ #+end_html - ** Making the Worm Muscles Video #+name: magick7 #+begin_src clojure