Search found 41 matches

by lwang87
07 Nov 2021, 14:26
Forum: General questions
Topic: Question About Collision Times Recording
Replies: 3
Views: 8368

Re: Question About Collision Times Recording

Hello, you should only increase the collision count, if the current collision state is true , and previous collision state was false . But even in that situation, you might experience unwanted counts, when the vehicle is very close to the wall, and constantly enters and leaves a collision state. To...
by lwang87
02 Nov 2021, 10:06
Forum: General questions
Topic: Question About Collision Times Recording
Replies: 3
Views: 8368

Question About Collision Times Recording

Hello, I created a scene contained a car and walls. And I can used a joystick to control the car. I want to record the collision times of the car and walls, which means that the car touches with the walls once, the collision time increased by one. But in my scene, when the car touch with walls once,...
by lwang87
28 Jul 2021, 16:46
Forum: General questions
Topic: check the dialog diaplay
Replies: 2
Views: 5254

Re: check the dialog diaplay

Thanks for your reply. And, the problem I have is: I've used the following code to check for collisions and give a hint: local current_state=sim.checkCollision(car_body,wall_1) if(current_state==1 and last_collision_state==0 and collide_start_T==0)then ---record state collisiont time collide_start_T...
by lwang87
28 Jul 2021, 16:27
Forum: General questions
Topic: change the dialog's size
Replies: 2
Views: 5319

Re: change the dialog's size

Thanks for your reply. But I've use sim.displayDialog to show the information, The code is following: dialog_H=sim.displayDialog('Attention','Delay Level:no delay',sim.dlgstyle_ok,true) , and not only the text it showed but the text window, is too small. Is there any way to make this window and the ...
by lwang87
27 Jul 2021, 13:43
Forum: General questions
Topic: check the dialog diaplay
Replies: 2
Views: 5254

check the dialog diaplay

Hello,
I want to check the dialog display. I've thought about a code like: "

Code: Select all

if dialog_A is displaying then sim.endDialog(dialog_A)  end
.” But I don't know how to achieve this. Please tell me, thanks for your reply!
by lwang87
27 Jul 2021, 13:36
Forum: General questions
Topic: change the dialog's size
Replies: 2
Views: 5319

change the dialog's size

Hello,
I want to know how to change the size of the dialog's box(or dialog display). The words of dialog and the size of that text box I set are too small. Please tell me, thanks!
by lwang87
27 Jul 2021, 13:33
Forum: General questions
Topic: model's distance recording
Replies: 2
Views: 4106

Re: model's distance recording

Thank you so much, fferi!
by lwang87
26 Jul 2021, 17:44
Forum: General questions
Topic: model's distance recording
Replies: 2
Views: 4106

model's distance recording

Hello,
My model is a car. I will control it to run through a maze (not always straight). I defined an initial variable — distance=0. And I want to know how to record the distance it move from the initial position to the end. Thank you for spending your time on answering my question.
by lwang87
24 Jul 2021, 07:55
Forum: General questions
Topic: real-time simulation and high fps
Replies: 8
Views: 10784

Re: real-time simulation and high fps

Your error is bad argument #9 to 'write' (string expected, got nil) , that means in other words that instead of a string, you provided the nil argument to write . And it even tells you that the 9th argument is the culprit... Check what your variables are (e.g. print them), and if they possibly are ...
by lwang87
22 Jul 2021, 14:03
Forum: General questions
Topic: set model to a new position but it's orientation isn't correct
Replies: 5
Views: 4921

Re: set model to a new position but it's orientation isn't correct

And, could you please check https://forum.coppeliarobotics.com/view ... f=9&t=9321 and express your thoughts about this question? I think this is also a common problem in terms of data acquisition and recording. Thank you!