Show variables values at the console
Posted: 17 Dec 2018, 15:16
Hi I would like to ask you with which function can I show the value of a variable at the console. I already know the sim.AddstatusBar but it only works for messages with string character
So the child script of the robot is for example
function sysCall_actuation()
quat=sim.getObjectQuaternion(MainBodyBase,-1)
euler=sim.getObjectOrientation(MainBodyBase,-1)
sim.setJointTargetVelocity(leftMotor,0.3)
sim.setJointTargetVelocity(rightMotor,0.6)
end
I want to check the values in every iteration of quat and Euler
So the child script of the robot is for example
function sysCall_actuation()
quat=sim.getObjectQuaternion(MainBodyBase,-1)
euler=sim.getObjectOrientation(MainBodyBase,-1)
sim.setJointTargetVelocity(leftMotor,0.3)
sim.setJointTargetVelocity(rightMotor,0.6)
end
I want to check the values in every iteration of quat and Euler