Comments (7)
Hi , unfortunately i don't have any reply for your question , in the other hand i want to add person_walking i clone it but i don't know how to launch it in gazebo , actually i need the command to launch it , i would be grateful if you could help me
from gazebo_models.
@issouker97 I believe your issue is not related to your issue. Please don't hijack the topic of this thread
from gazebo_models.
@ahcorde Could you shed any light on this issue?
from gazebo_models.
The tags that you mentioned are being readed in the Gazebo code ( in the world class ).
In the plugin you need to setup some env vars:
// Use environment variables if set for home position.
const char *env_lat = std::getenv("PX4_HOME_LAT");
const char *env_lon = std::getenv("PX4_HOME_LON");
const char *env_alt = std::getenv("PX4_HOME_ALT");
from gazebo_models.
@ahcorde Without the environment variables, it reads from the worldfile with https://github.com/PX4/sitl_gazebo/blob/master/src/gazebo_gps_plugin.cpp#L105, However even if I change the spherical coordinates in https://github.com/PX4/sitl_gazebo/blob/master/worlds/mcmillan_airfield.world#L20 the returned value doesn't change
Therefore, the problem is that the return value from
gazebo::common::SphericalCoordinatesPtr spherical_coords = world->SphericalCoords();
Doesn't seem to reflect the tag properly from the world file.
from gazebo_models.
@ahcorde I can confirm that when reading the spherical coordinates from the world object, it returns the origin set from the mcmillan_airfield.tif
file and not the one that is defined in the .world
file
from gazebo_models.
@ahcorde It seems like gazebo overrides the spherical coordinate defined in the world file and uses the origin of the DEM if I understand correctly the following.
If this is the default behavior, this would explain the issues that I have been seeing.
// Modify the reference geotedic latitude/longitude.
// A GPS sensor will use the real georeferenced coordinates of the terrain.
common::SphericalCoordinatesPtr sphericalCoordinates;
sphericalCoordinates = this->world->SphericalCoords();
if (sphericalCoordinates)
{
ignition::math::Angle latitude, longitude;
double elevation;
this->dem.GetGeoReferenceOrigin(latitude, longitude);
elevation = this->dem.GetElevation(0.0, 0.0);
sphericalCoordinates->SetLatitudeReference(latitude);
sphericalCoordinates->SetLongitudeReference(longitude);
sphericalCoordinates->SetElevationReference(elevation);
sphericalCoordinates.reset();
}
else
gzerr << "Unable to get a valid SphericalCoordinates pointer\n";
return 0;
}
from gazebo_models.
Related Issues (20)
- could author add human organs gazebo models? HOT 1
- Ask for source of a crawler robot model. HOT 2
- Error of Loading Husky in My Own World File. HOT 6
- Simple arm has an invalid inertia matrix HOT 1
- Unclear which license models are released under
- Make hammer not static? HOT 3
- stop_light_post missing on http://models.gazebosim.org/ HOT 4
- SIGKILL when loading SDF model HOT 2
- Husky model has invalid material <script> HOT 1
- Don't rely on gazebo.materials and friends HOT 3
- Mecurial support ending; Switch to Git? HOT 2
- Revolute2 joints are mot working | gazebo9 | ubuntu18.04 HOT 8
- How to launch person_walking in gazebo HOT 1
- Some models are not visible in Gazebo 7.0
- Creating custom world based on accurate Geo-spatial features HOT 1
- LFS enabled files are not downloadable HOT 1
- Git-LFS error - batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access. HOT 1
- gazebo on orang pi 4-lts ubuntu focal HOT 1
- How realistic models are made ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gazebo_models.