edumo / bikinect2

Automatically exported from code.google.com/p/bikinect
0 stars 0 forks source link

1100 doesn't work as distance #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

<?xml version="1.0" encoding="utf-8" ?>
<mappings>

    <mappingset id="abbassaBraccia">    

        <mapping label="sconforto"> 
            <processor type="boolean" filter="greater_than" label="sconf1">
                <processor type="distance" filter="greater_than" label="sconf2">
                    <element type="joint" target="right_hand" property="position"  />
                    <element type="joint" target="left_hand" property="position"  />
                </processor>    
                <processor type="direct">
                    <element type="value" value="1100" />
                </processor>    
            </processor>    
            <output>
                <midi type="note" device="0" channel="1" channelMap="1" minChannel="8" maxChannel="9"  distinctNotes="true" />  
            </output>
        </mapping>  

    </mappingset>

</mappings>

What is the expected output? What do you see instead?

I wish to activate the trigger when i open my arms. If i lower direct value 
from 1100 to 800, works. But if i want to track a larger gesture (i put 1100 as 
value), doesn't; even if info about hands coordinates tells they are more far 
than 1100.

What version of the product are you using? On what operating system?

At this point, you know!

Please provide any additional information below.

Thanks!

Original issue reported on code.google.com by michele....@gmail.com on 10 Nov 2011 at 3:37

GoogleCodeExporter commented 8 years ago
Have you tried other inbetween values ?
the "greater_than" filter in the distance processor is unnecessary

Original comment by bkuperb...@gmail.com on 10 Nov 2011 at 3:40

GoogleCodeExporter commented 8 years ago
Here it is. This, with 950, works.
The same, with 1000, doesn't; even if i have a lot of possibility to
get if further far than the 950 tracked position.

<?xml version="1.0" encoding="utf-8" ?>
<mappings>

       <mappingset id="abbassaBraccia">

               <mapping label="sconforto">
                       <processor type="boolean" filter="greater_than" label="sconf1">
                               <processor type="distance" label="sconf2">
                                       <element type="joint" target="right_hand" property="position"  />
                                       <element type="joint" target="left_hand" property="position"  />
                               </processor>
                               <processor type="direct">
                                       <element type="value" value="950" />
                               </processor>
                       </processor>
                       <output>
                               <midi type="note" device="0" channel="1" channelMap="1"
minChannel="8" maxChannel="9"  distinctNotes="true" />
                       </output>
               </mapping>

       </mappingset>

</mappings>

Original comment by michele....@gmail.com on 10 Nov 2011 at 3:46

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Can you try to switch left hand and right hand in the distance processor ?

Original comment by bkuperb...@gmail.com on 10 Nov 2011 at 3:54

GoogleCodeExporter commented 8 years ago
Done, with 1100, no difference: doesn't work.

Original comment by michele....@gmail.com on 10 Nov 2011 at 3:59

GoogleCodeExporter commented 8 years ago
I'll have a look when i get time.

Original comment by bkuperb...@gmail.com on 10 Nov 2011 at 4:34

GoogleCodeExporter commented 8 years ago
Same problem as issue #18

You can add overflow="none" in the distance processor, that will pass the 
default min/max.
Or specify the minValue and maxValue you need to be good (like 0 -> 3000). But 
overflow="none" is a better solution.

Original comment by bkuperb...@gmail.com on 12 Jan 2012 at 3:15

GoogleCodeExporter commented 8 years ago

Original comment by bkuperb...@gmail.com on 6 Jul 2012 at 10:52