Use the setParent method:
ofNode parent; ofNode child; child.setParent(parent); parent.setGlobalPosition(10, 20, 30); child.setPosition(100, 200, 300); ofVec3f pos = child.getGlobalPosition();
Note that setPosition is local, associated with its parent position, while setGlobalPosition is global.
source share