Skip to content
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

RoboBoat01 reference model #758

Merged
merged 11 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tweak
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
  • Loading branch information
caguero committed Dec 17, 2023
commit cbc2c827676dddbedd03f747d3eb1aebbae29387
7 changes: 3 additions & 4 deletions vrx_gz/src/Surface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -210,18 +210,17 @@ void Surface::PreUpdate(const sim::UpdateInfo &_info,
if (_info.paused)
return;

sim::enableComponent<sim::components::WorldPose>(
_ecm, this->dataPtr->link.Entity(), true);

// Vehicle frame transform.
const auto kPose = this->dataPtr->link.WorldPose(_ecm);
if (!kPose)
{
sim::enableComponent<sim::components::WorldPose>(
_ecm, this->dataPtr->link.Entity(), true);

gzerr << "Unable to get world pose from link ["
<< this->dataPtr->link.Entity() << "]" << std::endl;
return;
}

const math::Vector3d kEuler = (*kPose).Rot().Euler();
math::Quaternion vq(kEuler.X(), kEuler.Y(), kEuler.Z());

Expand Down
29 changes: 1 addition & 28 deletions vrx_gz/worlds/sydney_regatta.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -512,33 +512,6 @@
</plugin>
</include>

<!-- RoboBoat 01 -->
<include>
<name>roboboat01</name>
<pose>-528 184 0 0 0 0</pose>
<uri>roboboat01</uri>
</include>

<!-- RoboBoat 02 -->
<!-- <include>
<name>roboboat02</name>
<pose>-528 180 0 0 0 0</pose>
<uri>roboboat02</uri>
</include> -->

<!-- RoboBoat thruster -->
<!-- <include>
<name>roboboat_thruster</name>
<pose>-528 176 0 0 0 0</pose>
<uri>roboboat_thruster</uri>
</include> -->

<!-- <include>
<name>wam-v2</name>
<pose>-528 172 0 0 0 0</pose>
<uri>https://fuel.gazebosim.org/1.0/openrobotics/models/wam-v</uri>
</include> -->

<!-- The posts for securing the WAM-V -->
<include>
<name>post_0</name>
Expand Down Expand Up @@ -642,7 +615,7 @@
key: "gain"
value {
type: DOUBLE
double_value: 0.1
double_value: 0.3
}
}
params {
Expand Down