def main():
  rospy.init_node('CallCalibrateExtrinsics')
  dashboard_client = DashboardClient()

  rospy.wait_for_service('/CalibrateExtrinsics/calibrateExtrinsics')
  rospy.sleep(3);
  try:
      calibrate_extrinsics = rospy.ServiceProxy('/CalibrateExtrinsics/calibrateExtrinsics', CalibrateExtrinsics)
      resp = calibrate_extrinsics()
      if resp.result == CalibrateExtrinsicsResponse.SUCCEEDED:
          dashboard_client.info("Extrinsics calibration was successful. Please continue with the hand-eye calibration.")
          return True
      dashboard_client.error("There was a problem with the extrinsics calibration. Please repeat.")
      return False
  except rospy.ServiceException, e:
      dashboard_client.error("Service call failed: %s"%e)
#!/usr/bin/env python
import roslib
roslib.load_manifest('arm_dashboard_client')
import rospy

from arm_dashboard_client import DashboardClient

rospy.init_node('DashboardClientTest', log_level=rospy.DEBUG)
rospy.loginfo('Started DashboardClientTest node.')

dashboard_client = DashboardClient()

while not rospy.is_shutdown():
    dashboard_client.debug("Testing dashboard client (debug).")
    dashboard_client.info("Testing dashboard client (info).")
    dashboard_client.warn("Testing dashboard client (warn).")
    dashboard_client.error("Testing dashboard client (error).")
    dashboard_client.fatal("Testing dashboard client (fatal).")
    rospy.sleep(1.0)