main() function in pose_rviz.cpp
In pose_rviz.cpp, like you spotted, I think it does need a main()
.
You can just do what you did in pose_listener.cpp and copy the main()
function from there. Just make sure to change the arguments in registering the subscriber.
Edited by Walters, Celyn Dr (Comp Sci & Elec Eng)