private string GetDataLine(string elapsedTime, SIGVerse.RosBridge.human_navigation.HumanNaviAvatarPose avatarPose, string dataType) { string dataLine = elapsedTime + "," + dataType; dataLine += "\t" + "HumanNaviAvatarPose"; dataLine += "\t" + "head[position:" + avatarPose.head.position.ToString() + ", orientation:" + avatarPose.head.orientation.ToString() + "]"; dataLine += "\t" + "left_hand[position:" + avatarPose.left_hand.position.ToString() + ", orientation:" + avatarPose.left_hand.orientation.ToString() + "]"; dataLine += "\t" + "right_hand[position:" + avatarPose.right_hand.position.ToString() + ", orientation:" + avatarPose.right_hand.orientation.ToString() + "]"; return(dataLine); }
public void OnSendRosAvatarPoseMessage(SIGVerse.RosBridge.human_navigation.HumanNaviAvatarPose avatarPose) { this.dataLines.Add(GetDataLine(this.GetHeaderElapsedTime(), avatarPose, HumanNaviPlaybackCommon.DataTypeHumanNaviROSMessageSent)); }