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

World plugin #36

Merged
merged 16 commits into from
Nov 2, 2017
Merged

World plugin #36

merged 16 commits into from
Nov 2, 2017

Conversation

KnightArthurRen
Copy link
Collaborator

  • Added virtual class FlatlandPlugin to be parent class for both Model Plugin and World Plugin
  • Modified files to accept FlatlandPlugin
  • Modified Model Plugin to inheritance from FlatlandPlugin
  • Added World Plugin to support world modification
  • Modified world.cpp and plugin_manager to read world plugin
  • Added a example world plugin of random wall

if (type.find("::") != std::string::npos) {
world_plugin = world_plugin_loader_->createInstance(type);
} else {
ROS_INFO_NAMED("PluginManager", "else");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably don't need this debug bit or the below commented out parts any more


YamlReader world_plugin_reader =
world_reader.SubnodeOpt("plugins", YamlReader::LIST);
// world_reader.EnsureAccessedAllKeys();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this break now with the plugins subnode?

float RayTrace::ReportFixture(b2Fixture *fixture, const b2Vec2 &point,
const b2Vec2 &normal, float fraction) {
// only register hit in the specified layers
if (!(fixture->GetFilterData().categoryBits & 1)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean "only the first layer"? If so, that's not really the "specified" layers?

@josephduchesne josephduchesne merged commit e2ec709 into master Nov 2, 2017
JoaoCostaIFG pushed a commit to JoaoCostaIFG/flatland that referenced this pull request Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants