7 from mvsim_comms
import pymvsim_comms
8 from mvsim_msgs
import SrvSetPose_pb2
15 req = SrvSetPose_pb2.SrvSetPose()
16 req.objectId = objectName
20 req.pose.yaw = theta_rad
24 client.callService(
'set_pose', req.SerializeToString())
27 if __name__ ==
"__main__":
28 client = pymvsim_comms.mvsim.Client()
29 client.setName(
"tutorial1")
30 print(
"Connecting to server...")
32 print(
"Connected successfully.")
37 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)