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

Merge ign-gazebo6 ➡️ gz-sim7 #2288

Merged
merged 20 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
4f8fcda
Bump Fuel model version in test (#2190)
azeey Oct 3, 2023
85cbf82
Merge ign-gazebo3 into ign-gazebo6
azeey Oct 3, 2023
8511623
fix INTEGRATION_save_world's SdfGeneratorFixture.ModelWithNestedInclu…
iche033 Sep 27, 2023
eaad78f
Merge pull request #2191 from azeey/3_to_6
azeey Oct 5, 2023
14b0f3b
backport component inspector Vector3d width fix (#2195)
iche033 Oct 9, 2023
2fd1b23
Fix another deadlock in sensors system (#2141) (#2200)
iche033 Oct 11, 2023
e7bc54e
merge and fix conflicts
iche033 Oct 16, 2023
d7381e5
Merge pull request #2210 from gazebosim/backport_sensors_fix
iche033 Oct 18, 2023
28728c9
Fix for sensor pointer null when navsat plugin in included in sdf (#2…
ashBabu Oct 30, 2023
f818301
Update github issue template (#2222)
iche033 Nov 1, 2023
20ee4df
Fix macOS test failures by registering components in the core library…
azeey Nov 1, 2023
97450b6
Relax pose check in actor no mesh test (#2196)
iche033 Oct 10, 2023
2a9d86c
Merge pull request #2225 from gazebosim/backport_actor_no_mesh_fix
iche033 Nov 3, 2023
e0e02c4
Update friction parameters for skid steer example (#2235)
azeey Nov 14, 2023
7c786b2
Update github action workflows (#2237)
azeey Nov 14, 2023
6548aac
Merge ign-gazebo3 into ign-gazebo6
azeey Jan 5, 2024
5d34efe
Merge pull request #2277 from gazebosim/azeey/3_to_6
azeey Jan 5, 2024
45a01a8
Allow using plugin file names and environment variables compatible wi…
azeey Jan 12, 2024
a00e377
Prepare for 6.16.0 Release (#2284)
azeey Jan 13, 2024
5a76b28
Merge 6 into 7
azeey Jan 16, 2024
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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ labels: bug
---

<!-- If you're not sure whether your problem is a bug, please ask a question at
http://answers.gazebosim.org instead.-->
https://robotics.stackexchange.com instead.-->

## Environment
* OS Version: <!-- e.g, Ubuntu 20.04 -->
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ labels: enhancement

<!-- If you're not sure on the specifics of the feature or would like a broader
discussion, please consider posting a proposal to
http://community.gazebosim.org/ instead.-->
https://robotics.stackexchange.com instead.-->

## Desired behavior
<!-- Describe the current problem and the feature you want implemented.-->
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
pull_request:
push:
branches:
- 'gz-sim7'

# Every time you make a push to your PR, it cancel immediately the previous checks,
- 'ign-gazebo[0-9]'
- 'gz-sim[0-9]?'
- 'main'
# and start a new one. The other runner will be available more quickly to your PR.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -18,7 +18,7 @@ jobs:
name: Ubuntu Focal CI
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
with:
Expand All @@ -35,7 +35,7 @@ jobs:
name: Ubuntu Jammy CI
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
with:
Expand Down
29 changes: 29 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,35 @@

## Gazebo Sim 6.x

### Gazebo Sim 6.16.0 (2024-01-12)

1. Allow using plugin file names and environment variables compatible with Garden and later
* [Pull request #2275](https://github.com/gazebosim/gz-sim/pull/2275)

1. Update friction parameters for skid steer example
* [Pull request #2235](https://github.com/gazebosim/gz-sim/pull/2235)

1. Relax pose check in actor no mesh test
* [Pull request #2196](https://github.com/gazebosim/gz-sim/pull/2196)

1. Fix macOS test failures by registering components in the core library
* [Pull request #2220](https://github.com/gazebosim/gz-sim/pull/2220)

1. Fix for sensor pointer null when navsat plugin in included in sdf
* [Pull request #2176](https://github.com/gazebosim/gz-sim/pull/2176)

1. Fix another deadlock in sensors system
* [Pull request #2200](https://github.com/gazebosim/gz-sim/pull/2200)

1. Backport component inspector Vector3d width fix
* [Pull request #2195](https://github.com/gazebosim/gz-sim/pull/2195)

1. Bump Fuel model version in test
* [Pull request #2190](https://github.com/gazebosim/gz-sim/pull/2190)

1. Infrastructure
* [Pull request #2237](https://github.com/gazebosim/gz-sim/pull/2237)
* [Pull request #2222](https://github.com/gazebosim/gz-sim/pull/2222)

### Gazebo Sim 6.15.0 (2023-08-16)

Expand Down
24 changes: 16 additions & 8 deletions examples/worlds/diff_drive_skid.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@
<surface>
<friction>
<ode>
<mu>0.5</mu>
<mu2>1.0</mu2>
<mu>1</mu>
<mu2>1</mu2>
<slip1>0.035</slip1>
<slip2>0</slip2>
<fdir1>0 0 1</fdir1>
</ode>
<bullet>
Expand Down Expand Up @@ -203,8 +205,10 @@
<surface>
<friction>
<ode>
<mu>0.5</mu>
<mu2>1.0</mu2>
<mu>1</mu>
<mu2>1</mu2>
<slip1>0.035</slip1>
<slip2>0</slip2>
<fdir1>0 0 1</fdir1>
</ode>
<bullet>
Expand Down Expand Up @@ -251,8 +255,10 @@
<surface>
<friction>
<ode>
<mu>0.5</mu>
<mu2>1.0</mu2>
<mu>1</mu>
<mu2>1</mu2>
<slip1>0.035</slip1>
<slip2>0</slip2>
<fdir1>0 0 1</fdir1>
</ode>
<bullet>
Expand Down Expand Up @@ -299,8 +305,10 @@
<surface>
<friction>
<ode>
<mu>0.5</mu>
<mu2>1.0</mu2>
<mu>1</mu>
<mu2>1</mu2>
<slip1>0.035</slip1>
<slip2>0</slip2>
<fdir1>0 0 1</fdir1>
</ode>
<bullet>
Expand Down
39 changes: 37 additions & 2 deletions src/Conversions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,41 @@

out.SetCameraSensor(sensor);
}
else if (out.Type() == sdf::SensorType::GPS ||
out.Type() == sdf::SensorType::NAVSAT)
{
sdf::NavSat sensor;
if (_in.has_gps())

Check warning on line 1384 in src/Conversions.cc

View check run for this annotation

Codecov / codecov/patch

src/Conversions.cc#L1383-L1384

Added lines #L1383 - L1384 were not covered by tests
{
if (_in.gps().position().has_horizontal_noise())

Check warning on line 1386 in src/Conversions.cc

View check run for this annotation

Codecov / codecov/patch

src/Conversions.cc#L1386

Added line #L1386 was not covered by tests
{
sensor.SetHorizontalPositionNoise(sim::convert<sdf::Noise>(
_in.gps().position().horizontal_noise()));

Check warning on line 1389 in src/Conversions.cc

View check run for this annotation

Codecov / codecov/patch

src/Conversions.cc#L1388-L1389

Added lines #L1388 - L1389 were not covered by tests
}
if (_in.gps().position().has_vertical_noise())

Check warning on line 1391 in src/Conversions.cc

View check run for this annotation

Codecov / codecov/patch

src/Conversions.cc#L1391

Added line #L1391 was not covered by tests
{
sensor.SetVerticalPositionNoise(sim::convert<sdf::Noise>(
_in.gps().position().vertical_noise()));

Check warning on line 1394 in src/Conversions.cc

View check run for this annotation

Codecov / codecov/patch

src/Conversions.cc#L1393-L1394

Added lines #L1393 - L1394 were not covered by tests
}
if (_in.gps().velocity().has_horizontal_noise())

Check warning on line 1396 in src/Conversions.cc

View check run for this annotation

Codecov / codecov/patch

src/Conversions.cc#L1396

Added line #L1396 was not covered by tests
{
sensor.SetHorizontalVelocityNoise(sim::convert<sdf::Noise>(
_in.gps().velocity().horizontal_noise()));

Check warning on line 1399 in src/Conversions.cc

View check run for this annotation

Codecov / codecov/patch

src/Conversions.cc#L1398-L1399

Added lines #L1398 - L1399 were not covered by tests
}
if (_in.gps().velocity().has_vertical_noise())

Check warning on line 1401 in src/Conversions.cc

View check run for this annotation

Codecov / codecov/patch

src/Conversions.cc#L1401

Added line #L1401 was not covered by tests
{
sensor.SetVerticalVelocityNoise(sim::convert<sdf::Noise>(
_in.gps().velocity().vertical_noise()));

Check warning on line 1404 in src/Conversions.cc

View check run for this annotation

Codecov / codecov/patch

src/Conversions.cc#L1403-L1404

Added lines #L1403 - L1404 were not covered by tests
}
}
else
{
gzerr << "Attempting to convert a navsat sensor message, but the "
<< "message does not have a navsat nested message.\n";

Check warning on line 1410 in src/Conversions.cc

View check run for this annotation

Codecov / codecov/patch

src/Conversions.cc#L1409-L1410

Added lines #L1409 - L1410 were not covered by tests
}

out.SetNavSatSensor(sensor);

Check warning on line 1413 in src/Conversions.cc

View check run for this annotation

Codecov / codecov/patch

src/Conversions.cc#L1413

Added line #L1413 was not covered by tests
}
else if (out.Type() == sdf::SensorType::ALTIMETER)
{
sdf::Altimeter sensor;
Expand Down Expand Up @@ -1653,8 +1688,8 @@
std::string path = asFullPath(_in.ColorRangeImage(), _in.FilePath());

common::SystemPaths systemPaths;
systemPaths.SetFilePathEnv(kResourcePathEnv);
std::string absolutePath = systemPaths.FindFile(path);
std::string absolutePath =
common::SystemPaths::LocateLocalFile(path, sim::resourcePaths());

if (!absolutePath.empty())
{
Expand Down
70 changes: 26 additions & 44 deletions src/Server_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include "plugins/MockSystem.hh"
#include "../test/helpers/Relay.hh"
#include "../test/helpers/EnvTestFixture.hh"
#include "../test/helpers/Util.hh"

using namespace gz;
using namespace gz::sim;
Expand Down Expand Up @@ -277,14 +278,10 @@ TEST_P(ServerFixture, GZ_UTILS_TEST_DISABLED_ON_WIN32(ServerConfigRealPlugin))
msgs::StringMsg rep;
bool result{false};
bool executed{false};
int sleep{0};
int maxSleep{30};
while (!executed && sleep < maxSleep)
{
gzdbg << "Requesting /test/service" << std::endl;
executed = node.Request("/test/service", 100, rep, result);
sleep++;
}
const std::string service = "/test/service";
ASSERT_TRUE(test::waitForService(node, service));
gzdbg << "Requesting " << service << std::endl;
executed = node.Request(service, 1000, rep, result);
EXPECT_TRUE(executed);
EXPECT_TRUE(result);
EXPECT_EQ("TestModelSystem", rep.data());
Expand Down Expand Up @@ -336,14 +333,10 @@ TEST_P(ServerFixture,
msgs::StringMsg rep;
bool result{false};
bool executed{false};
int sleep{0};
int maxSleep{30};
while (!executed && sleep < maxSleep)
{
gzdbg << "Requesting /test/service/sensor" << std::endl;
executed = node.Request("/test/service/sensor", 100, rep, result);
sleep++;
}
const std::string service ="/test/service/sensor";
ASSERT_TRUE(test::waitForService(node, service));
gzdbg << "Requesting " << service << std::endl;
executed = node.Request(service, 1000, rep, result);
EXPECT_TRUE(executed);
EXPECT_TRUE(result);
EXPECT_EQ("TestSensorSystem", rep.data());
Expand Down Expand Up @@ -779,16 +772,12 @@ TEST_P(ServerFixture, ServerControlStop)
msgs::Boolean res;
bool result{false};
bool executed{false};
int sleep{0};
int maxSleep{30};

const std::string service = "/server_control";
ASSERT_TRUE(test::waitForService(node, service));
// first, call with stop = false; the server should keep running
while (!executed && sleep < maxSleep)
{
gzdbg << "Requesting /server_control" << std::endl;
executed = node.Request("/server_control", req, 100, res, result);
sleep++;
}
gzdbg << "Requesting " << service << std::endl;
executed = node.Request(service, req, 1000, res, result);
EXPECT_TRUE(executed);
EXPECT_TRUE(result);
EXPECT_FALSE(res.data());
Expand All @@ -801,8 +790,8 @@ TEST_P(ServerFixture, ServerControlStop)
// now call with stop = true; the server should stop
req.set_stop(true);

gzdbg << "Requesting /server_control" << std::endl;
executed = node.Request("/server_control", req, 100, res, result);
gzdbg << "Requesting " << service << std::endl;
executed = node.Request(service, req, 1000, res, result);

EXPECT_TRUE(executed);
EXPECT_TRUE(result);
Expand Down Expand Up @@ -1046,14 +1035,10 @@ TEST_P(ServerFixture, GetResourcePaths)
msgs::StringMsg_V res;
bool result{false};
bool executed{false};
int sleep{0};
int maxSleep{30};
while (!executed && sleep < maxSleep)
{
gzdbg << "Requesting /gazebo/resource_paths/get" << std::endl;
executed = node.Request("/gazebo/resource_paths/get", 100, res, result);
sleep++;
}
const std::string service = "/gazebo/resource_paths/get";
ASSERT_TRUE(test::waitForService(node, service));
gzdbg << "Requesting " << service << std::endl;
executed = node.Request(service, 1000, res, result);
EXPECT_TRUE(executed);
EXPECT_TRUE(result);
EXPECT_EQ(2, res.data_size());
Expand Down Expand Up @@ -1100,7 +1085,9 @@ TEST_P(ServerFixture, AddResourcePaths)
common::SystemPaths::Delimiter() +
std::string("/tmp/even_more"));
req.add_data("/tmp/some/path");
bool executed = node.Request("/gazebo/resource_paths/add", req);
const std::string service = "/gazebo/resource_paths/add";
ASSERT_TRUE(test::waitForService(node, service));
bool executed = node.Request(service, req);
EXPECT_TRUE(executed);

int sleep{0};
Expand Down Expand Up @@ -1154,17 +1141,12 @@ TEST_P(ServerFixture, ResolveResourcePaths)
msgs::StringMsg req, res;
bool result{false};
bool executed{false};
int sleep{0};
int maxSleep{30};

req.set_data(_uri);
while (!executed && sleep < maxSleep)
{
gzdbg << "Requesting /gazebo/resource_paths/resolve" << std::endl;
executed = node.Request("/gazebo/resource_paths/resolve", req, 100,
res, result);
sleep++;
}
const std::string service ="/gazebo/resource_paths/resolve";
ASSERT_TRUE(test::waitForService(node, service));
gzdbg << "Requesting " << service << std::endl;
executed = node.Request(service, req, 1000, res, result);
EXPECT_TRUE(executed);
EXPECT_EQ(_found, result);
EXPECT_EQ(_expected, res.data()) << "Expected[" << _expected
Expand Down
Loading