We can install the tf2_web_republisher package by following these steps:
First, switch to your ROS catkin workspace and clone the package code using the following command:
$ git clone https://github.com/RobotWebTools/tf2_web_republisher
After cloning the code, install the following package, which may be required to build the preceding package:
$ sudo apt-get install ros-kinetic-tf2-ros
After installing the dependent package, you can install tf2_web_republisher, by using the catkin_make command from the workspace.
If you are getting an error regarding message generation, you can add the following line of code to package.xml: <build_depend>message_generation</build_depend>