I am using p5.js and Kinectron to have one server computer display RGB, Depth, and Skeleton data from another computer over LAN, and it's own kinect.
Using p5.js, I am trying to log two different variables to the console, and I am only able to log one of the variables.
Code:
...
function drawJoint(joint) {
fill(100);
console.log( "kinect1" + joint);
// Kinect location data needs to be normalized to canvas size
ellipse( ( joint.depthX * 300 ) + 400 , joint.depthY * 300 , 15, 15);
fill(200);
...
function draw2Joint(joint2) {
fill(100);
console.log ("kinect2" + joint2);
// Kinect location data needs to be normalized to canvas size
ellipse(joint2.depthX * 300 , joint2.depthY * 300, 15, 15);
fill(200);
...
When running the above code, the console only shows Joint data from Kinect 1 in real-time, whereas I need both Kinect's Joint data to be logged to the Console.
How can I use console.log for multiple variables/arguments ?
Thanks in advance!
draw2Jointis being executed?