catkin_ws/src/ball_chaser/src/process_image.cpp
void drive_robot(float lin_x, float ang_z)
{
	ball_chaser::DriveToTarget srv;
	srv.request.linear_x = lin_x;
	srv.request.angular_z = ang_z;
	
	if (!client.call(srv)) {
		ROS_ERROR("Falled to call DriveToTarget service");
	}
}
// This function calls the command_robot service to drive the robot in the specified direction
This function calls the command_robot service to drive the robot in the specified direction
This function calls the command_robot service to drive the robot in the specified direction
void drive_robot(float lin_x, float ang_z)
{
	ball_chaser::DriveToTarget srv;
	srv.request.linear_x = lin_x;
	srv.request.angular_z = ang_z;
	if (!client.call(srv)) {
		ROS_ERROR("Falled to call DriveToTarget service");
	}
}
void drive_robot ( float lin_x , float ang_z ) { ball_chaser :: DriveToTarget srv ; srv . request . linear_x = lin_x ; srv . request . angular_z = ang_z ; if ( ! client . call ( srv ) ) { ROS_ERROR ( " " ) ; } }
This function calls the command_robot service to drive the robot in the specified direction
This function calls the command_robot service to drive the robot in the specified direction