Exemplo n.º 1
0
def init():
    rospy.init_node('data_plotter', anonymous=True)

    global graphics
    graphics = Graphics(XAXIS_LENGTH=8, YAXIS_LENGTH=8)
    graphics.clear()
    graphics.display()

    rospy.Subscriber("vn_200_accel_gyro_compass", vn_200_accel_gyro_compass, vn_200_imu_callback)

    rospy.spin()
Exemplo n.º 2
0
def init():
    rospy.init_node('scan_plotter', anonymous=True)

    global graphics
    graphics = Graphics(XAXIS_LENGTH=8, YAXIS_LENGTH=8)
    graphics.clear()
    graphics.display()

    topicInfo = [
        TopicInfo("/sonar_data", True),
        TopicInfo("/sonar_scan", True),
        TopicInfo("/image_scan", True),
        TopicInfo("/image_scan_transformed", False),
        TopicInfo("/scan", True, True),
        TopicInfo("/planar_data", False),
        ]

    r = rospy.Rate(2) # 2hz
    while not rospy.is_shutdown():
        draw_stuff()
        r.sleep()
Exemplo n.º 3
0
def init():
    rospy.init_node('scan_plotter', anonymous=True)

    global graphics
    graphics = Graphics(XAXIS_LENGTH=8, YAXIS_LENGTH=8)
    graphics.clear()
    graphics.display()

    topicInfo = [
        TopicInfo("/sonar_data", True),
        TopicInfo("/sonar_scan", True),
        TopicInfo("/image_scan", True),
        TopicInfo("/image_scan_transformed", False),
        TopicInfo("/scan", True, True),
        TopicInfo("/planar_data", False),
    ]

    r = rospy.Rate(2)  # 2hz
    while not rospy.is_shutdown():
        draw_stuff()
        r.sleep()
Exemplo n.º 4
0
def init():
    rospy.init_node('data_plotter', anonymous=True)

    global graphics
    graphics = Graphics(XAXIS_LENGTH=4, YAXIS_LENGTH=4)
    graphics.clear()
    graphics.display()

    rospy.Subscriber("orientation_data", Orientation, orient_callback)
    graphics.draw_axis()

    r = rospy.Rate(10) # 10hz
    while not rospy.is_shutdown():
        # graphics.clear()
        graphics.plot(x, y)
        #graphics.plot_line(0, 0, x, y)
        graphics.display()
        r.sleep()