Error when making rtps agent

Blockquote

In file included from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/position_setpoint_triplet_PubSubTypes.h:29:0,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/position_setpoint_triplet_Subscriber.h:48,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.h:66,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:34:
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/position_setpoint_triplet_.h:75:15: error: redefinition of ‘const uint8_t position_setpoint__VELOCITY_FRAME_LOCAL_NED’
const uint8_t position_setpoint__VELOCITY_FRAME_LOCAL_NED = 1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/position_setpoint_PubSubTypes.h:29:0,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/position_setpoint_Subscriber.h:48,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.h:65,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:34:
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/position_setpoint_.h:74:15: note: ‘const uint8_t position_setpoint__VELOCITY_FRAME_LOCAL_NED’ previously defined here
const uint8_t position_setpoint__VELOCITY_FRAME_LOCAL_NED = 1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/position_setpoint_triplet_PubSubTypes.h:29:0,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/position_setpoint_triplet_Subscriber.h:48,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.h:66,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:34:
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/position_setpoint_triplet_.h:76:15: error: redefinition of ‘const uint8_t position_setpoint__VELOCITY_FRAME_BODY_NED’
const uint8_t position_setpoint__VELOCITY_FRAME_BODY_NED = 8;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/position_setpoint_PubSubTypes.h:29:0,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/position_setpoint_Subscriber.h:48,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.h:65,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:34:
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/position_setpoint_.h:75:15: note: ‘const uint8_t position_setpoint__VELOCITY_FRAME_BODY_NED’ previously defined here
const uint8_t position_setpoint__VELOCITY_FRAME_BODY_NED = 8;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.h:66:0,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:34:
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/position_setpoint_triplet_Subscriber.h:65:5: error: ‘px4’ does not name a type
px4::msg::dds_::position_setpoint_triplet_ getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/position_setpoint_triplet_Subscriber.h:82:9: error: ‘px4’ does not name a type
px4::msg::dds_::position_setpoint_triplet_ msg;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/position_setpoint_triplet_Subscriber.h:92:5: error: ‘px4’ does not name a type
px4::msg::dds_::position_setpoint_triplet_PubSubType position_setpoint_tripletDataType;
^~~
In file included from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.h:67:0,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:34:
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/trajectory_waypoint_Subscriber.h:65:5: error: ‘px4’ does not name a type
px4::msg::dds_::trajectory_waypoint_ getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/trajectory_waypoint_Subscriber.h:82:9: error: ‘px4’ does not name a type
px4::msg::dds_::trajectory_waypoint_ msg;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/trajectory_waypoint_Subscriber.h:92:5: error: ‘px4’ does not name a type
px4::msg::dds_::trajectory_waypoint_PubSubType trajectory_waypointDataType;
^~~
In file included from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.h:68:0,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:34:
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/vehicle_trajectory_waypoint_Subscriber.h:65:5: error: ‘px4’ does not name a type
px4::msg::dds_::vehicle_trajectory_waypoint_ getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/vehicle_trajectory_waypoint_Subscriber.h:82:9: error: ‘px4’ does not name a type
px4::msg::dds_::vehicle_trajectory_waypoint_ msg;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/vehicle_trajectory_waypoint_Subscriber.h:92:5: error: ‘px4’ does not name a type
px4::msg::dds_::vehicle_trajectory_waypoint_PubSubType vehicle_trajectory_waypointDataType;
^~~
In file included from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.h:69:0,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:34:
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/onboard_computer_status_Subscriber.h:65:5: error: ‘px4’ does not name a type
px4::msg::dds_::onboard_computer_status_ getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/onboard_computer_status_Subscriber.h:82:9: error: ‘px4’ does not name a type
px4::msg::dds_::onboard_computer_status_ msg;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/onboard_computer_status_Subscriber.h:92:5: error: ‘px4’ does not name a type
px4::msg::dds_::onboard_computer_status_PubSubType onboard_computer_statusDataType;
^~~
In file included from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.h:70:0,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:34:
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/vehicle_mocap_odometry_Subscriber.h:65:5: error: ‘px4’ does not name a type
px4::msg::dds_::vehicle_mocap_odometry_ getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/vehicle_mocap_odometry_Subscriber.h:82:9: error: ‘px4’ does not name a type
px4::msg::dds_::vehicle_mocap_odometry_ msg;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/vehicle_mocap_odometry_Subscriber.h:92:5: error: ‘px4’ does not name a type
px4::msg::dds_::vehicle_mocap_odometry_PubSubType vehicle_mocap_odometryDataType;
^~~
In file included from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.h:71:0,
from /home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:34:
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/vehicle_visual_odometry_Subscriber.h:65:5: error: ‘px4’ does not name a type
px4::msg::dds_::vehicle_visual_odometry_ getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/vehicle_visual_odometry_Subscriber.h:82:9: error: ‘px4’ does not name a type
px4::msg::dds_::vehicle_visual_odometry_ msg;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/vehicle_visual_odometry_Subscriber.h:92:5: error: ‘px4’ does not name a type
px4::msg::dds_::vehicle_visual_odometry_PubSubType vehicle_visual_odometryDataType;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp: In member function ‘void RtpsTopics::publish(uint8_t, char*, size_t)’:
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:291:13: error: ‘px4’ has not been declared
px4::msg::dds_::adc_report_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:294:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:300:13: error: ‘px4’ has not been declared
px4::msg::dds_::airspeed_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:303:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:309:13: error: ‘px4’ has not been declared
px4::msg::dds_::battery_status_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:312:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:318:13: error: ‘px4’ has not been declared
px4::msg::dds_::cpuload_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:321:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:327:13: error: ‘px4’ has not been declared
px4::msg::dds_::distance_sensor_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:330:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:336:13: error: ‘px4’ has not been declared
px4::msg::dds_::estimator_status_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:339:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:345:13: error: ‘px4’ has not been declared
px4::msg::dds_::home_position_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:348:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:354:13: error: ‘px4’ has not been declared
px4::msg::dds_::iridiumsbd_status_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:357:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:363:13: error: ‘px4’ has not been declared
px4::msg::dds_::radio_status_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:366:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:372:13: error: ‘px4’ has not been declared
px4::msg::dds_::satellite_info_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:375:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:381:13: error: ‘px4’ has not been declared
px4::msg::dds_::sensor_baro_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:384:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:390:13: error: ‘px4’ has not been declared
px4::msg::dds_::sensor_combined_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:393:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:399:13: error: ‘px4’ has not been declared
px4::msg::dds_::sensor_selection_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:402:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:408:13: error: ‘px4’ has not been declared
px4::msg::dds_::vehicle_attitude_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:411:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:417:13: error: ‘px4’ has not been declared
px4::msg::dds_::vehicle_odometry_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:420:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:426:13: error: ‘px4’ has not been declared
px4::msg::dds_::vtol_vehicle_status_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:429:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:435:13: error: ‘px4’ has not been declared
px4::msg::dds_::wind_estimate_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:438:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:444:13: error: ‘px4’ has not been declared
px4::msg::dds_::collision_constraints_ st;
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:447:13: error: ‘st’ was not declared in this scope
st.deserialize(cdr_des);
^~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp: In member function ‘bool RtpsTopics::getMsg(uint8_t, eprosima::fastcdr::Cdr&)’:
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:465:17: error: ‘px4’ has not been declared
px4::msg::dds_::camera_capture_ msg = camera_capture_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:466:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:474:17: error: ‘px4’ has not been declared
px4::msg::dds
::camera_trigger_ msg = camera_trigger_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:475:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:483:17: error: ‘px4’ has not been declared
px4::msg::dds
::collision_report_ msg = collision_report_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:484:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:492:17: error: ‘px4’ has not been declared
px4::msg::dds
::debug_array_ msg = debug_array_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:493:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:501:17: error: ‘px4’ has not been declared
px4::msg::dds
::debug_key_value_ msg = debug_key_value_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:502:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:510:17: error: ‘px4’ has not been declared
px4::msg::dds
::debug_value_ msg = debug_value_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:511:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:519:17: error: ‘px4’ has not been declared
px4::msg::dds
::debug_vect_ msg = debug_vect_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:520:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:528:17: error: ‘px4’ has not been declared
px4::msg::dds
::obstacle_distance_ msg = obstacle_distance_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:529:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:537:17: error: ‘px4’ has not been declared
px4::msg::dds
::optical_flow_ msg = optical_flow_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:538:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:546:17: error: ‘px4’ has not been declared
px4::msg::dds
::position_setpoint_ msg = position_setpoint_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:547:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:555:17: error: ‘px4’ has not been declared
px4::msg::dds
::position_setpoint_triplet_ msg = position_setpoint_triplet_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:556:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:564:17: error: ‘px4’ has not been declared
px4::msg::dds
::trajectory_waypoint_ msg = trajectory_waypoint_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:565:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:573:17: error: ‘px4’ has not been declared
px4::msg::dds
::vehicle_trajectory_waypoint_ msg = vehicle_trajectory_waypoint_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:574:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:582:17: error: ‘px4’ has not been declared
px4::msg::dds
::onboard_computer_status_ msg = onboard_computer_status_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:583:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:591:17: error: ‘px4’ has not been declared
px4::msg::dds
::vehicle_mocap_odometry_ msg = vehicle_mocap_odometry_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:592:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:600:17: error: ‘px4’ has not been declared
px4::msg::dds
::vehicle_visual_odometry_ msg = _vehicle_visual_odometry_sub.getMsg();
^~~
/home/nrivera/src/Firmware/build/px4_sitl_rtps/src/modules/micrortps_bridge/micrortps_client/micrortps_agent/RtpsTopics.cpp:601:17: error: ‘msg’ was not declared in this scope
msg.serialize(scdr);
^~~
CMakeFiles/micrortps_agent.dir/build.make:62: recipe for target ‘CMakeFiles/micrortps_agent.dir/RtpsTopics.cpp.o’ failed
make[2]: *** [CMakeFiles/micrortps_agent.dir/RtpsTopics.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/micrortps_agent.dir/all’ failed
make[1]: *** [CMakeFiles/micrortps_agent.dir/all] Error 2
Makefile:83: recipe for target ‘all’ failed
make: *** [all] Error 2

Blockquote

This is what I get when I try to build my rtps agent. All previous steps worked in the px4 dev guide. I was having issues with the .sh files in the installation part of the guide: https://dev.px4.io/v1.9.0/en/setup/dev_env_linux_ubuntu.html. So I installed FastRTPS following it’s independend instructions: https://dev.px4.io/v1.9.0/en/setup/fast-rtps-installation.html