The ROS package of the gripper (http://wiki.ros.org/robotiq) works on ROS Melodic.
Here are tutorials:
http://wiki.ros.org/robotiq/Tutorials
Regarding the camera, you may manage to access the camera image via UR controller USB but you will have limited control over the camera. Camera parameters like focus, exposure, white balance cannot be controlled.
bcastets
I recommend that you get the UR ROS package. They have some tools to emulate the RS485 wirst communication of the robot on the PC.
https://github.com/UniversalRobots/Universal_Robots_ROS_Driver/blob/master/ur_robot_driver/doc/setup_tool_communication.md
You can also check this related post:
https://dof.robotiq.com/discussion/comment/5811#Comment_5811
[ 0.000000] Kernel command line: BOOT_IMAGE=(hd0,3)/vmlinuz root=LABEL=rootfs.0 rootfstype=ext3 console=ttyS0,115200 consoleblank=0 net.ifnames=0 biosdevname=0 panic=60 intel_idle.max_cstate=0 processor.max_cstate=0 sdhci_pci.max_freq=0 idle=poll splash quiet rauc.slot=A isolcpus=3
[ 0.000000] console [ttyS0] enabled
[ 3.573559] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 7.381382] systemd[1]: Expecting device dev-ttyS0.device...
[ 86.551742] cdc_acm 1-2.3.1:1.2: ttyACM0: USB ACM device
[ 86.552132] cdc_acm 1-2.3.1:1.5: ttyACM1: USB ACM device