I'm working on a program that will be used to navigate throught gazebo wolrds using libgazebo and a joystick.
The problem is that I don't know how to use the gz_guicam_data structure. I only need to do something like pan, tilt and move (for/back)ward. I suppose that this variables are the only interface I have with the guicam:

int cmd_spot_mode;
int cmd_spot_state;
cmd_spot_a[2], cmd_spot_b[2];
int roll_lock;

Thanks in advance