ZMQapiRequest issues

Report crashes, strange behaviour, or apparent bugs
JayanthBobbili
Posts: 7
Joined: 24 Oct 2023, 12:40

Re: ZMQapiRequest issues

Post by JayanthBobbili »

Sorry once again.

here is the file for scene,

https://drive.google.com/file/d/1i-l0gw ... sp=sharing

here is the entire folder,
https://drive.google.com/drive/folders/ ... sp=sharing

it is 'Task_1B.ttt'

please look into as fast as you can, Uregent! thank you !

coppelia
Site Admin
Posts: 10375
Joined: 14 Dec 2012, 00:25

Re: ZMQapiRequest issues

Post by coppelia »

you are mixing up everything. When you run from within CoppeliaSim, you do not need to use the remote API (and moreover, you are using the deprecated legacy remote API instead of the ZeroMQ remote API)

When running Python from within CoppeliaSim, you can do, e.g.:

Code: Select all

#python

def sysCall_init():
    sim = require('sim')
    objectHandle = sim.getObject('.')
    print('The object I am attached to has alias: ' + sim.getObjectAlias(objectHandle))

def sysCall_sensing():
    print(sim.getSimulationTime())
Cheers

JayanthBobbili
Posts: 7
Joined: 24 Oct 2023, 12:40

Re: ZMQapiRequest issues

Post by JayanthBobbili »

Thanks a lot, it worked.

Thank you !!

Post Reply