CoppeliaSim-VR-Toolbox icon indicating copy to clipboard operation
CoppeliaSim-VR-Toolbox copied to clipboard

CoppeliaSim-VR-Toolbox 2.2 build

Open holyotters opened this issue 10 months ago • 2 comments

the file 'vrep_plot_container.h' is lost

holyotters avatar Aug 15 '23 15:08 holyotters

Hi @holyotters,

As you can see from the latest commit this repository is quite old, and it is not actively maintained. So I don't remember any details of the code anymore. However, the same issue has been discussed and solved here: #13 . I hope this works for you as well, and good luck!

Kind regards, Boris

BorisBogaerts avatar Aug 16 '23 07:08 BorisBogaerts

Hi @BorisBogaerts Thank you for your recovery, I deleted the relevant code according to your description, and the reconstruction was successful, but there was no input for the handle operation, and I found that the following function was not called during debugging.

void OnButton3D(vtkEventData *edata) { int mode; bool trackpad = false; bool Joystick = false; std::string signalName; vtkEventDataDeviceInput button = edata->GetAsEventDataDevice3D()->GetInput(); vtkEventDataDevice controller = edata->GetAsEventDataDevice3D()->GetDevice(); vtkEventDataDevice tracked = vtkEventDataDevice::GenericTracker; vtkEventDataAction action = edata->GetAsEventDataDevice3D()->GetAction(); vtkEventDataDevice Headset = vtkEventDataDevice::HeadMountedDisplay;

bool left = false;
if (controller == vtkEventDataDevice::LeftController) {
	signalName = "L_";
	left = true;
}
else if (controller == vtkEventDataDevice::RightController) {
	signalName = "R_";
	left = false;
}
if (button == vtkEventDataDeviceInput::Trigger) {
	signalName.append("Trigger_");
}else if (button == vtkEventDataDeviceInput::Grip) {
	signalName.append("Grip_");
}else if (button == vtkEventDataDeviceInput::TrackPad) {

holyotters avatar Sep 08 '23 09:09 holyotters