Mankeysocks / bikinect

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

Mappinect doesn't run certain configuration #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I can run Mappinect setting defaultMappingFile in config.xml as 
"live_jazz.xml"
2. I can't if i set it to "mappings.xml"
3.

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

In Console log, error is: 
06/11/11 17.11.07   [0x0-0x780780].MappiNect[7305]  [JavaAppLauncher] Requested 
[1.5*], launching in [1.6] instead.
06/11/11 17.11.08   [0x0-0x780780].MappiNect[7305]  OscP5 0.9.6 infos, comments, 
questions at http://www.sojamo.de/oscP5
06/11/11 17.11.08   [0x0-0x780780].MappiNect[7305]  ### [2011/11/6 17:11:8] 
PROCESS @ OscP5 stopped.
06/11/11 17.11.08   [0x0-0x780780].MappiNect[7305]  ### [2011/11/6 17:11:8] 
PROCESS @ UdpClient.openSocket udp socket initialized.
06/11/11 17.11.09   [0x0-0x780780].MappiNect[7305]  ### [2011/11/6 17:11:9] 
PROCESS @ UdpServer.start() new Unicast DatagramSocket created @ port 4000
06/11/11 17.11.09   [0x0-0x780780].MappiNect[7305]  ### [2011/11/6 17:11:9] 
PROCESS @ UdpServer.run() UdpServer is running @ 4000
06/11/11 17.11.09   [0x0-0x780780].MappiNect[7305]  ### [2011/11/6 17:11:9] INFO @ 
OscP5 is running. you (10.0.1.2) are listening @ port 4000
06/11/11 17.11.09   [0x0-0x780780].MappiNect[7305]  Settings loaded :
06/11/11 17.11.09   [0x0-0x780780].MappiNect[7305]   -> midiOutputDeviceID :0
06/11/11 17.11.09   [0x0-0x780780].MappiNect[7305]   -> oscDefaultInPort :4000
06/11/11 17.11.09   [0x0-0x780780].MappiNect[7305]   -> oscDefaultOutPort :4444
06/11/11 17.11.09   [0x0-0x780780].MappiNect[7305]   -> oscDefaultHost :127.0.0.1
06/11/11 17.11.09   [0x0-0x780780].MappiNect[7305]   -> oscAddressPrefix 
:/mappInect
06/11/11 17.11.09   [0x0-0x780780].MappiNect[7305]  SimpleOpenNI Version 0.20
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]  Read set 0 in file 
examples/mappings.xml
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]   * getShortcuts on mappings, 
found 0 shortcuts in 16 sets
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]  Loaded set is not inScope, 
loading next set
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]  Read set 1 in file 
examples/mappings.xml
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]   * getShortcuts on mappings, 
found 0 shortcuts in 16 sets
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]  ---- Begin Read Permanent Sets 
--------
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]  ### token null not found
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]   * New MappingProcessor : 
type: 7, filter: 0, isBoolean :true, effect :1, showFeedback 
:true,labelFeedback:false, inactive =0
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]  Processor numChildren :1
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]   * -> Processor is Group
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]  ### token null not found
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]   * New MappingProcessor : 
type: 4, filter: 1, isBoolean :true, effect :0, showFeedback 
:true,labelFeedback:false, inactive =0
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]  Processor numChildren :2
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]   * -> Processor is Group
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]  ### token null not found
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]   * New MappingProcessor : 
type: 2, filter: 1, isBoolean :false, effect :0, showFeedback 
:true,labelFeedback:false, inactive =0
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]  Processor numChildren :2
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]   * New MappingElement : type: 
0, target: 15, property: 0, axis :0, value:0, position : [ 0.0, 0.0, 0.0 ], 
isVector :true
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]   * New MappingElement : type: 
1, target: 0, property: 0, axis :0, value:0, position : [ 600.0, 500.0, 1000.0 
], isVector :true
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]  ### token null not found
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]   * New MappingProcessor : 
type: 0, filter: 0, isBoolean :false, effect :0, showFeedback 
:true,labelFeedback:false, inactive =0
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]  Processor numChildren :1
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]   * New MappingElement : type: 
2, target: 0, property: 0, axis :0, value:200, position : [ 0.0, 0.0, 0.0 ], 
isVector :false
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]  Exception in thread "Animation 
Thread" 
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]  java.lang.NullPointerException
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]      at 
MappiNect$MappingManager.readXMLOutputs(MappiNect.java:1059)
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]      at 
MappiNect$MappingManager.processSet(MappiNect.java:922)
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]      at 
MappiNect$MappingManager.readPermanentSets(MappiNect.java:941)
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]      at 
MappiNect$MappingManager.readSet(MappiNect.java:903)
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]      at 
MappiNect$MappingManager.readSet(MappiNect.java:852)
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]      at 
MappiNect$MappingManager.readNextSet(MappiNect.java:952)
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]      at 
MappiNect$MappingManager.readSet(MappiNect.java:897)
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]      at 
MappiNect$MappingManager.readFile(MappiNect.java:842)
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]      at 
MappiNect.setup(MappiNect.java:119)
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]      at 
processing.core.PApplet.handleDraw(PApplet.java:1608)
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]      at 
processing.core.PApplet.run(PApplet.java:1530)
06/11/11 17.11.31   [0x0-0x780780].MappiNect[7305]      at 
java.lang.Thread.run(Thread.java:680)

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

Mappinect 1.0 on macosx 10.6.7

Please provide any additional information below.

The same error  happens also with this very simple example:

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

    <mappingset id="Booleani" label="test"  inScope="true">
        <mapping>
            <processor type="boolean" filter="less_than">
                <element type="joint" target="left_hand" property="position" axis="x" />
                <element type="value" value="-330" />
            </processor>
        </mapping>

    </mappingset>

</mappings>

Original issue reported on code.google.com by michele....@gmail.com on 6 Nov 2011 at 4:16

GoogleCodeExporter commented 8 years ago
Hi,
mappings.xml was done before a major change concerning output handling.
All mappings must have an <output></output> tag in them. You can check into 
live_jazz to see how it works.
If you want to test mappings.xml or your simple example, you have to add after 
the </processor> an empty <output></output>

Original comment by bkuperb...@gmail.com on 6 Nov 2011 at 4:27

GoogleCodeExporter commented 8 years ago
Thanks so much for the superfast answer!

Original comment by michele....@gmail.com on 6 Nov 2011 at 4:37