def sendClientPositionUpdate(self, name, data): #print "received client position update" #print data msg = position_msg() self.msgr.setMessage(msg, data) self.pub_clinfo_pos.publish(msg)
def sendCoords(): msg = position_msg() msg.x = -29.2 msg.y = 14 msg.z = -41 msg.pitch = 20.3 msg.yaw = -92 coord_pub.publish(msg) rospy.loginfo(msg)
def camera_tick(self): msg = position_msg() pos = self.pos_to_dict() msg.x = pos['x'] msg.y = pos['y'] msg.z = pos['z'] msg.pitch = pos['pitch'] msg.yaw = pos['yaw'] self.pub_pos.publish(msg)
def camera_tick(self): """ Publishes a camera position_msg to the ROS system. The message contains the camera's current position, pitch, and yaw. Note that this is different than the bot's position which is published on the 'client_position_data' ROS topic. """ msg = position_msg() pos = self.pos_to_dict() msg.x = pos['x'] msg.y = pos['y'] msg.z = pos['z'] msg.pitch = pos['pitch'] msg.yaw = pos['yaw'] self.pub_pos.publish(msg)