Hello !
If you you want to modify odom_frame and base_frame values for gmapping, you have two possible solutions:
If the launch file you use requested arguments, that is to say, if you can see lines like that:
< arg name="odom_frame" default="xxx" />
< arg name="base_frame" default="yyy" />
and farther:
...$(arg odom_frame)...
...$(arg base_frame)...
----- You just have to call your launch file by adding in parameter of the command line:
odom_frame:=your_new_odom_value
and
base_frame:=your_new_base_value
Else, if you cannot see what is previously indicated, you have to write the new values you want for odom_frame and base_frame inside your gmapping config file, for example gmapping.yaml (you can choose any name you want for this file). Inside, you have to specify the new values respecting the yaml syntax. Then, inside your launch file which call the gmapping node, you load your yaml file previously created using the rosparam command.
I hope I was clear as possible