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

ros2 how to publish vehicle_trajectory_waypoint topic? #19017

Open
xiaobai-cai-hold opened this issue Jan 16, 2022 · 2 comments
Open

ros2 how to publish vehicle_trajectory_waypoint topic? #19017

xiaobai-cai-hold opened this issue Jan 16, 2022 · 2 comments

Comments

@xiaobai-cai-hold
Copy link

I want to publish vehicle_trajectory_waypoint topic in px4_ros_com/offboardcontrol.cpp to contrlo vehicle to fly several points or make the vehicle to work on mission mode. I look up px4_msgs/msg/VehicleTrajectoryWaypoint.msg, it includes the following content

uint64 timestamp # time since system start (microseconds)

uint8 MAV_TRAJECTORY_REPRESENTATION_WAYPOINTS = 0

uint8 type # Type from MAV_TRAJECTORY_REPRESENTATION enum.

uint8 POINT_0 = 0
uint8 POINT_1 = 1
uint8 POINT_2 = 2
uint8 POINT_3 = 3
uint8 POINT_4 = 4

uint8 NUMBER_POINTS = 5

TrajectoryWaypoint[5] waypoints

I dont't know how to set waypoints' value and type values. I find some instruction that can study
https://mavlink.io/en/messages/common.html#TRAJECTORY_REPRESENTATION_WAYPOINTS
https://mavlink.io/en/messages/common.html#MAV_CMD
https://mavlink.io/en/services/trajectory.html

I don't know how to set waypoints values , can someone help me solve this problem? thanks

@tank104
Copy link

tank104 commented Aug 12, 2022

Did you manage to sort this? I too would like to upload missions via ros2

@xiaobai-cai-hold
Copy link
Author

sorry,I cant solve it.

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

2 participants