6/25/2023 0 Comments Webots dongle not workingos.environ 'HOME' was giving a KeyError in python3. # Close our Kinect sensor, close the window and quit. Controllers spawned through ros2 not working for Webots: in Windows 10 182 Closed prabinrath opened this issue on 4 comments Fixed by 186 prabinrath commented on Added from pathlib import Path and replaced os.environ 'HOME' in line 68 with str ( ()). # - Update the screen with what we've drawn. Self.draw_body(joints, joint_points, SKELETON_COLORS) Joint_points = self._kinect.body_joints_to_color_space(joints) # convert joint coordinates to color space 222 Chapter 1 Installing Webots This chapter explains how to install Webots and the USB dongle on your computer. Speaker.speak("User detected!", volume=1.0) # Speak to the userįor i in range(0, self._kinect.max_body_count): The Kinect body detection is a slightly modified version of this example: class BodyGameRuntime(object): If the issue still persist, I would suggest you to reinstall the USB drivers and check if it helps. Click on Hardware and Sound Click on Hardware and Devices. Type Troubleshooting in search box and open it. Here are the relevant parts of my code, I can provide the full code if needed. Run hardware troubleshooter and check if it helps. Even if that's the case, I don't know how to proceed. I believe this might be a synchronization issue due to Kinect and Webots having their own clocks, but I'm not sure. wbt file -Open it again in Webots and it should work. Replace all occurences of webots:// by -Save the. On the confirmation window, check the Delete the driver. On the Driver tab, select Uninstall or Uninstall Device (depending on your version of Windows). Select Xbox Wireless Adapter for Windows to bring up the Properties window. Short answer: -Open agriProj.wbt in a text editor. Locate Xbox Wireless Adapter for Windows in the Network adapters section. After I close the Kinect window, the robot speaks the message but that code should have been executed inside the Kinect code, as listed below. It seems like your Webots installation is looking for the PROTO locally instead of remotely. However, when the Kinect starts running and the window pops up, Webots clock stops ticking and the robot doesn't do anything. I have a Kinect V2 hooked up to the USB port and it can detect a person on its own by running my Python code using PyKinect2 and pygame.Īs the next step, I put that code into the Webots environment and I've added a robot to speak to the user when Kinect detects them. I'm trying to create a Webots simulation where I want my robot to speak when the Kinect camera detects a person. 1 Answer Sorted by: 0 The VRML97 import feature was removed from Webots R2023a because it is replaced by the Mesh and CadShape nodes.
0 Comments
Leave a Reply. |