ROS program snipets

Load ROS  parameters (from launch)

roscpp

node_handle.getParam(“/tfs/param_1”, param_1);

ros::param::get(“/robot1/camera/brightness”, brightness);

ros::param::get(“~brightness”, brightness);

rospy

rospy.get_param(“/robot1/camera/brightness”)

rospy.get_param(“~brightness”)

Get and Set ROS Params with rospy and roscpp