-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
rcp_error with imagecapture request in cpp #3928
Comments
Also tried using the
@jonyMarino Would you have any ideas if the |
Hi Jaeyoung! You are using the ComputerVision mode but I think what you want is the Multirotor one. Your code should work changing that. |
@jonyMarino Thanks for the reply! How can I capture images when I am in computer vision mode? I am trying to use airlib so that it can orient the camera as it is attached on a gimbal, and capture the images through mavlink. Would there be a better way to achieve this without using computer vision mode? |
Hi @Jaeyoung-Lim, for capturing images in computer vision mode, I think you'll want to use AirSim's RpcLibClientBase instead of MultirotorRpcLibClient. Your call to simGetImages() should be fine, I think you're just using the wrong client. |
But if you want to use our ROS wrapper, maybe it is better to use the ExternalPhysicsEngine in Multirotor mode. If you have problems with that, let us know. |
@zimmy87 @jonyMarino Thanks for the inputs, I tried using
I have also tried disabling computer vision mode and run the Not sure what I am missing here. What I am basically trying to do using airlib is as the following. Would there be a better way to do this?
|
Jaeyoung. Neither Zimmy nor I were able to reproduce your issue. Are you using the same AirSim version for the airsim client (HelloDrone) and server (your UE AirSim project)? |
@jonyMarino Oh, I forgot to mention this. I built my airlib with gcc-8 and for the simulation using a landscape mountains binary from the 1.5.0-linux release. Do you think this might be causing the issue? Since I am building my package with gcc and linking airlib I thought this was what I should do |
By repackaging the latest Airsim on linux solved the problem. (See the image captured below) This means that the Since I am interested in using the gcc compiled Airlib I tried to build @jonyMarino @zimmy87 Since my problems were caused by a regression on the airlib API, it would be very helpful if there can be a new linux release, so other people do not need to repackage their Airsim with UE4. Would this be something possible? Thanks! |
@Jaeyoung-Lim That is in our plans. @saihv is solving one more issue and then we will start the new release. |
@jonyMarino @saihv Any chance of a ETA? would be quite helpful to plan my work 😄 |
@Jaeyoung-Lim Re the RPC error with 1.5.0 binary and latest master for compiling the client code, that's mostly due to #3320, I should have thought about and mentioned in the PR at least that it would break binary compatibility with the releases, sorry for that, and something to note at least in the future |
This month! |
@Jaeyoung-Lim Here you have! |
Bug report
What's the issue you encountered?
While it is possible to use the
msr::airlib::MultirotorRpcLibClient
for setting poses with.simSetVehiclePose()
, when requesting images, it fails with arpc_error
The code snippet I am using for requesting images are as the following
where the types are defined separately
This is running as part as a ROS node
What I don't understand is that since I am able to control the pose, the link between ros node and airsim is valid. However, I am not able to retrieve images from the server
Settings
How can the issue be reproduced?
Include full error message in text form
What's better than filing an issue? Filing a pull request :).
The text was updated successfully, but these errors were encountered: