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

The c++ offboard example is not support the latest microdds version. #167

Open
JetJie opened this issue Nov 11, 2022 · 4 comments
Open

The c++ offboard example is not support the latest microdds version. #167

JetJie opened this issue Nov 11, 2022 · 4 comments

Comments

@JetJie
Copy link

JetJie commented Nov 11, 2022

IThe c++ offboard example is not support the latest microdds version. Is there any update on the offboard control example?

@dagar
Copy link
Member

dagar commented Nov 11, 2022

Take a look at https://github.com/Jaeyoung-Lim/px4-offboard.

At this point with microdds I'm not sure if we should keep px4_ros_com or just get it split up into separate standalone examples we can refer to.

@JetJie
Copy link
Author

JetJie commented Nov 14, 2022

Ok, I know that, but it is a python example. I need a cpp offboard node to use my previous cpp-based project.

@laylow13
Copy link

I got a QoS error when I was running offboard_control. After making the following changes in the code, it can run normally

                rclcpp::QoS qos(10);
		qos.best_effort();
		qos.transient_local();
		offboard_control_mode_publisher_ = this->create_publisher<OffboardControlMode>("/fmu/in/offboard_control_mode", qos);
		trajectory_setpoint_publisher_ = this->create_publisher<TrajectorySetpoint>("/fmu/in/trajectory_setpoint", qos);
		vehicle_command_publisher_ = this->create_publisher<VehicleCommand>("/fmu/in/vehicle_command", qos);

@JetJie
Copy link
Author

JetJie commented Nov 17, 2022

@laylow13 Could you share me the whole code? Obviously, you add qos snippet in the cpp example. Thanks in advance.

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

No branches or pull requests

3 participants