I'm utterly confused by the Gazebo/Ignition simulation programs. I'm currently using ROS2 Foxy with Ubuntu 20.04 and looking forward to controlling an UAV modeled in Gazebo via ROS2. However I'm completely lost even though there's "documentation" (which I've found it to be really mixed up between all the different versions of ROS).
What I've done so far is trying to run this script:
#include <iostream>
#include <ignition/msgs.hh>
int main()
{
ignition::msgs::Vector3d point1;
point1.set_x(1);
point1.set_y(3);
point1.set_z(5);
ignition::msgs::Vector3d point2;
point2.set_x(2);
point2.set_y(4);
point2.set_z(6);
std::cout << "Point1:\n" << point1.DebugString() << std::endl;
std::cout << "Point2:\n" << point2.DebugString() << std::endl;
return 0;
}
However I get the message that the build fails since there is no ignition directory even though I have installed it.
I'd appreciate any help in this matter since I feel I'm completely lost with installations and the CMakeLists.txt file.