"octomap gets published only when the image seen by the camera changes significantly." Yes that is true.
"Did you put the Octomap topic to /octomap in the OccupancyGrid menu?" Yes, I did that.
I am using some other config file from visualization and has got it working for now!