-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken Quadcopter connection #9
Comments
Hi Harish, Two things, (1) Do you have the PID example working? and (2) Can you post a minimum working example I can test? That error signifies there is something wrong with the network connection between the python interface and the Gazebo plugin. More specifically it means it didn't receive the entire command. Also if you are only giving it a single command you may not notice it moving. Each step is only 0.001 seconds. Try putting it in a loop. |
The PID example is running and when I added the env.render() command in the PID scripts then I was getting proper result. I got the error when I was running in the python command line after importing gym and gymfc. These are the following commands I gave: import gymfc Hope you can find out the problem with this information. |
Try adding a delay of a couple of seconds after the render command . |
@wil3 sorry for the silly question it worked fined when I ran it in loop. |
@Kuppharish Glad you got it working. Looking at your example make sure in the future you call As for your second question, the FDMPacket does include linear velocity and position information, https://github.com/wil3/gymfc/blob/master/gymfc/envs/gazebo_env.py#L49 so you can access this through the observation variable in GazeboEnv. To remove the ball joint you need to create a new world file. Gazebo world and model files are in SDF format, you can find more information about them here, http://sdformat.org/spec. I don't plan on implementing this unless my research brings me in that direction but if you get it working submit a pull request would be a cool addition. Good luck! |
Same issue Could u please help me how you solve that issu eMy code is gym fc environment is stucked and not showing anything just quadcopter is In standby position
|
Of course it is, that's what you are telling it to do, reset then render. When pasting code in github make sure to use syntax highlighting otherwise the format will be messed up. Then use the 'Preview' to make sure it looks the way you want. |
i get that but what about The issur i have mentioned quadcopter is not showing any action ??? |
Actually the quad-copter is stuck in the space.It is not showing any action/maneuvers.I've been using following
|
Each time step is 0.001 seconds. You aren't going to visually see any change after doing a single step. Think of
Just like your initial post it is doing exactly as you programmed, create and then render the environment. I'm not sure why you expect an action to occur without calling step. I suggest reading the tech report if you haven't already, review the PID controller code , the Gazebo plugin if you are still confused. |
Hi, I've installed the package in Ubuntu 16.04 with Gazebo8. Every thing is fine with rendering the drone. But when I try to give action to the drone it doesn't move and and gives the following error:
Can you please tell me what the problem could be. Thank you
The text was updated successfully, but these errors were encountered: