(1) Use the existing joy ros driver to install the ROS driver function package by installing binary: sudo apt-get install ros-melodic-joy*
(2) After the installation is complete, you can test the joy node: run roscore; run rosrun joy joy_node
(3) At this time, there will be a /joy topic in the ros topic.