12 from mvsim_comms
import pymvsim_comms
13 from mvsim_msgs
import SrvSetPose_pb2
20 req = SrvSetPose_pb2.SrvSetPose()
21 req.objectId = objectName
25 req.pose.yaw = theta_rad
29 client.callService(
'set_pose', req.SerializeToString())
32 if __name__ ==
"__main__":
33 client = pymvsim_comms.mvsim.Client()
34 client.setName(
"tutorial1")
35 print(
"Connecting to server...")
37 print(
"Connected successfully.")
42 setObjectPose(client,
'r1', math.sin(th)*R, R*(1-math.cos(th)), th)
OutIt print(OutIt out, const xml_node< Ch > &node, int flags=0)
def setObjectPose(client, objectName, x, y, theta_rad)