Skip to content

Commit

Permalink
Update collision_map_creator.cc for melodic compilation
Browse files Browse the repository at this point in the history
This commit has not been tested officially.
  • Loading branch information
brolinA authored Jul 10, 2024
1 parent 1daeb70 commit d5013d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collision_map_creator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CollisionMapCreator : public WorldPlugin
node = transport::NodePtr(new transport::Node());
world = _parent;
// Initialize the node with the world name
node->Init(world->Name());
node->Init(world->GetName());
std::cout << "Subscribing to: " << "~/collision_map/command" << std::endl;
commandSubscriber = node->Subscribe("~/collision_map/command",
&CollisionMapCreator::create, this);
Expand Down Expand Up @@ -91,7 +91,7 @@ class CollisionMapCreator : public WorldPlugin
start.Z(msg->height());
end.Z(0.001);

gazebo::physics::PhysicsEnginePtr engine = world->Physics();
gazebo::physics::PhysicsEnginePtr engine = world->GetPhysicsEngine();
engine->InitForThread();
gazebo::physics::RayShapePtr ray =
boost::dynamic_pointer_cast<gazebo::physics::RayShape>(
Expand Down

0 comments on commit d5013d7

Please sign in to comment.