Removed unused variable
This commit is contained in:
parent
b6abc6725c
commit
6eefd5892c
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
#include "RoboidControl/NetworkSync.h"
|
#include "RoboidControl/NetworkSync.h"
|
||||||
|
|
||||||
void NetworkPerception::ProcessPacket(Roboid *roboid, unsigned char *buffer,
|
void NetworkPerception::ProcessPacket(Roboid* roboid,
|
||||||
|
unsigned char* buffer,
|
||||||
int packetsize) {
|
int packetsize) {
|
||||||
// printf("packet received, type = 0x%02x %d %d %d %d\n", buffer[0],
|
// printf("packet received, type = 0x%02x %d %d %d %d\n", buffer[0],
|
||||||
// buffer[2], buffer[3], buffer[4], buffer[5]);
|
// buffer[2], buffer[3], buffer[4], buffer[5]);
|
||||||
@ -36,7 +37,7 @@ Vector3 NetworkPerception::ReceiveVector3(unsigned char *data, int startIndex) {
|
|||||||
|
|
||||||
void NetworkPerception::ReceiveObject(unsigned char* data, Roboid* roboid) {
|
void NetworkPerception::ReceiveObject(unsigned char* data, Roboid* roboid) {
|
||||||
unsigned char objectId = data[1];
|
unsigned char objectId = data[1];
|
||||||
char poseType = data[2];
|
// char poseType = data[2];
|
||||||
Vector3 worldPosition = ReceiveVector3(data, 3);
|
Vector3 worldPosition = ReceiveVector3(data, 3);
|
||||||
Vector3 worldAngles = ReceiveVector3(data, 15);
|
Vector3 worldAngles = ReceiveVector3(data, 15);
|
||||||
Quaternion worldOrientation = Quaternion::Euler(worldAngles);
|
Quaternion worldOrientation = Quaternion::Euler(worldAngles);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user