Skip to content
Snippets Groups Projects
Commit f2f6e008 authored by Johannes Mey's avatar Johannes Mey
Browse files

avoid double-sending scene

parent c317f751
No related branches found
No related tags found
No related merge requests found
...@@ -60,10 +60,6 @@ int main(int argc, char **argv) ...@@ -60,10 +60,6 @@ int main(int argc, char **argv)
controller.loadScene(getPrivateParameter<std::string>("scene", ros::package::getPath("ccf_immersive_sorting") + controller.loadScene(getPrivateParameter<std::string>("scene", ros::package::getPath("ccf_immersive_sorting") +
"/config/config_scene_ceti-table-placeworld.json")); "/config/config_scene_ceti-table-placeworld.json"));
// TODO check if this is required (since loadScene already sends the scene)
ROS_INFO_STREAM("Sending initial scene after loading it.");
controller.sendScene();
std::optional<std::string> currentlyPickedBox{}; std::optional<std::string> currentlyPickedBox{};
ros::Subscriber sub = n.subscribe<std_msgs::Empty>("send_scene", 1000, [&controller]( ros::Subscriber sub = n.subscribe<std_msgs::Empty>("send_scene", 1000, [&controller](
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment