Changing default values of parameters in parameter server

asked 2019-07-13 06:19:28 -0500

gktg1514 gravatar image

As you know, when we execute the node "turtlesim_node", a simulation world with a robot turtle appears. In this simulation world has a blue background. We can change its color by using background color parameters in ros parameter server. The only thing that we need to do is to execute the piece of ros commands listed below:

rosparam set background_b 0

rosparam set background_g 0

rosparam set background_r 0

rosservice call /clear

However, I do not want to do that after executing this node. When I execute "turtlesim_node", I want to face a black background. In other words, instead of executing these commands externally, I want to modify that node and change default value of these three parameters.

How can I do that ?

edit retag flag offensive close merge delete