7. Interfaces
7.1. ROS2 Topics
7.1.1. force_setpoint
Set the requested torque setpoint of the motor.
Source type:
SUBSCRIBERMessage type:
std_msgs/msg/Float32msg.data= Cart applied linear force[N]QOS:
rcl::SensorDataQoSFrequency : TBD
7.1.2. pendulum_state
Publishes the current pendulum angular position and angular velocity.
Source type:
PUBLISHERMessage type:
geometry_msgs/msg/Vector3msg.x= pendulum angular position[rad]msg.y= pendulum angular velocity[rad/s]msg.z= Not in use[-]QOS:
rcl::SensorDataQoSFrequency: 50[Hz] - Period: 20[ms]
7.1.3. cart_state
Publishes the current cart position from center.
Source type:
PUBLISHERMessage type:
geometry_msgs/msg/Vector3msg.x= cart position[m]msg.y= cart velocity[m/s]msg.z= Not in use[-]QOS:
rcl::SensorDataQoSFrequency: 100[Hz] - Period: 10[ms]
7.1.4. status_cart
Publishes the current status of the cart.
Source type:
PUBLISHERmsg.data= cart state[-]0= CONFIGURED1= ACTIVE2= HEARTBEAT_ERROR
Message type:
std_msgs/msg/UInt8QOS:
status_qosself.status_qos = qos.QoSProfile(depth=1, reliability=qos.QoSReliabilityPolicy.RELIABLE, history=qos.QoSHistoryPolicy.KEEP_LAST, durability=qos.QoSDurabilityPolicy.TRANSIENT_LOCAL)
Frequency: Only published on change, changed at 100[Hz]