View Javadoc

1   package net.sf.josceleton.connection.impl.osc;
2   
3   import net.sf.josceleton.connection.impl.service.user.UserStore;
4   import net.sf.josceleton.core.api.entity.message.JointMessage;
5   import net.sf.josceleton.core.api.entity.message.UserMessage;
6   
7   import com.illposed.osc.OSCMessage;
8   
9   public interface OscMessageTransformer {
10  
11  	/**
12  	 * Expected OSCMessage arguments:
13  	 * 
14  	 * [0]:String ... the (body) joint, eg: "l_hand"
15  	 * [1]:Integer ... osceleton specific user ID
16  	 * [2]:Float ... value of X coordinate
17  	 * [3]:Float ... value of Y coordinate
18  	 * [4]:Float ... value of Z coordinate
19  	 */
20  	JointMessage transformJointMessage(OSCMessage oscMessage, UserStore userStore);
21  	
22  	/**
23  	 * 
24  	 * @param oscMessage
25  	 * @param userStore
26  	 * @return
27  	 */
28  	UserMessage transformUserMessage(OSCMessage oscMessage, UserStore userStore);
29  	
30  }