-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
bug-reportfor issues filed as bug reportsfor issues filed as bug reports
Description
Bug report
- AirSim Version/#commit: 6e2512e
- UE/Unity version: Unreal 4.25
- autopilot version: Computer vision mode
- OS Version: Ubuntu 18.04
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 a rpc_error
Waiting for connection - X
Connected!
Client Ver:1 (Min Req:1), Server Ver:1 (Min Req:1)
terminate called after throwing an instance of 'rpc::rpc_error'
what(): rpc::rpc_error during call
The code snippet I am using for requesting images are as the following
vector<ImageRequest> request = { ImageRequest("0", ImageType::Scene) };
const vector<ImageResponse>& response = client_.simGetImages(request);
where the types are defined separately
typedef msr::airlib::ImageCaptureBase::ImageRequest ImageRequest;
typedef msr::airlib::ImageCaptureBase::ImageResponse ImageResponse;
typedef msr::airlib::ImageCaptureBase::ImageType ImageType;
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
{
"SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md",
"SettingsVersion": 1.2,
"PhysicsEngineName":"ExternalPhysicsEngine",
"SimMode": "ComputerVision"
}
How can the issue be reproduced?
- Try using the image API in cpp?
Include full error message in text form
Waiting for connection - X
Connected!
Client Ver:1 (Min Req:1), Server Ver:1 (Min Req:1)
terminate called after throwing an instance of 'rpc::rpc_error'
what(): rpc::rpc_error during call
What's better than filing an issue? Filing a pull request :).
Metadata
Metadata
Assignees
Labels
bug-reportfor issues filed as bug reportsfor issues filed as bug reports