-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Spawn vehicles via rpc #1937
Spawn vehicles via rpc #1937
Conversation
@KerryMoffittRtn Hi. Since apparently this PR is not getting merged, could you help me with my problem ? Thanks |
@@ -80,6 +80,8 @@ class RpcLibClientBase { | |||
vector<ImageCaptureBase::ImageResponse> simGetImages(vector<ImageCaptureBase::ImageRequest> request, const std::string& vehicle_name = ""); | |||
vector<uint8_t> simGetImage(const std::string& camera_name, ImageCaptureBase::ImageType type, const std::string& vehicle_name = ""); | |||
|
|||
bool simAddVehicle(const std::string& vehicle_name, const std::string& vehicle_type, const std::string& pawn_path, float north, float east, float down); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
client.simAddVehicle("My", "simpleflight", "", 0, 0, 0);
client.enableApiControl(true, "My");
client.armDisarm(true, "My");
client.takeoffAsync(1.0, "My")->waitOnLastTask();
client.moveToPositionAsync(10, 10, -10, 10, 10, DrivetrainType::ForwardOnly, YawMode(false, 0.0), -1.0, 1.0, "My")->waitOnLastTask();
Don't know why these commands go wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error message looks like this:
LogTemp: Error: Exception occurred while updating world: PositionController does not support yaw axis i.e. 3
LogTemp: Error: Exception occurred while updating world: reset() must be called first before update()
LogTemp: Error: Exception occurred while updating world: reset() must be called first before update()
LogTemp: Error: Exception occurred while updating world: reset() must be called first before update()
@KerryMoffittRtn Thanks for this! It's a very interesting PR, I've opened a new PR #2390 which is rebased on master, will be adding some more things on that |
Closing this in favor of #2390 |
No description provided.