Quick C++ questiion

Hi again,

Just a quick question regarding C++ syntax, I have tried to find the answer online but couldn’t.

Is there a neater way of doing the below? I just want odomData to be the same value as odom from the callback parameter, so it’s usable in the rest of the class. This way I can use it in a get method.

odomHelp2

Best wishes,

Zac

Fixed!

I believe this is the correct syntax
odomData = *odom;

To de-reference the pointer.

1 Like