Download UJR. UJR is an application for taking axes or buttons from one or more physical joysticks, and merging them onto a virtual joystick (with tweaks such as axis inversion, deadzones, sensitivity ...
Create new ROS workspace environment (recommended) for ROS Melodic. For ROS Noetic may need to modify the python script on joystick_remapper/script/joystick_remapper ...