On this page

JointTrajectoryPointPublisher QML Type

Publishes trajectory_msgs::msg::JointTrajectoryPoint messages — Each trajectory point specifies either positions[, velocities[, accelerations]] or positions[, effort] for the trajectory to be executed. More...

Import Statement: import QtRos2.TrajectoryMsgs
Inherits:

PublisherBase

Status: Experimental Extension

Properties

Methods

  • void publish(jointTrajectoryPoint msg)

Detailed Description

All specified values are in the same order as the joint names in JointTrajectory.msg.

JointTrajectoryPointPublisher publishes jointTrajectoryPoint values to a ROS 2 topic. Set the topic and node properties, then call publish() to send messages.

See also JointTrajectoryPointSubscriber and jointTrajectoryPoint.

Property Documentation

accelerations : list<double>

The accelerations field value included in the next publish. Setting this property emits accelerationsChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.

effort : list<double>

The effort field value included in the next publish. Setting this property emits effortChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.

positions : list<double>

The positions field value included in the next publish. Setting this property emits positionsChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.

timeFromStart : duration

The timeFromStart field value included in the next publish. Setting this property emits timeFromStartChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.

velocities : list<double>

The velocities field value included in the next publish. Setting this property emits velocitiesChanged and, when autoPublish is true, requests a publish at the end of the current event-loop iteration.

Method Documentation

void publish(jointTrajectoryPoint msg)

Publishes jointTrajectoryPoint msg to the ROS 2 topic set by the topic property. Does nothing if the publisher is not connected.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.