#!/usr/bin/env python
# license removed for brevity

import rospy
from std_msgs.msg import String
from gazebo_msgs.msg import LinkState

def talker():
    pub = rospy.Publisher('/gazebo/set_link_state', LinkState, queue_size=10)
    ppp = LinkState()
    rospy.init_node('talker', anonymous=True)
    
    rate = rospy.Rate(100) # 10hz
    i = 1
    while not rospy.is_shutdown():
        ppp.link_name = "platform"
        ppp.pose.position.x = 0.1
        ppp.pose.position.y = 0.1
        ppp.pose.position.z = 1
        ppp.pose.orientation.x = 0
        ppp.pose.orientation.y = 0
        ppp.pose.orientation.z = 0
        ppp.pose.orientation.w = 0
        i = i+1
        rospy.loginfo(ppp)
        pub.publish(ppp)
        rate.sleep()


if __name__ == '__main__':
    try:
        talker()
    except rospy.ROSInterruptException:
        pass

[(9, 'rospy.Publisher', 'rospy.Publisher', False, 'import rospy\n'), (10, 'gazebo_msgs.msg.LinkState', 'LinkState', False, 'from gazebo_msgs.msg import LinkState\n'), (11, 'rospy.init_node', 'rospy.init_node', False, 'import rospy\n'), (13, 'rospy.Rate', 'rospy.Rate', False, 'import rospy\n'), (15, 'rospy.is_shutdown', 'rospy.is_shutdown', False, 'import rospy\n'), (25, 'rospy.loginfo', 'rospy.loginfo', False, 'import rospy\n')]