ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Assuming that you are using python. You hould be able to set your message with something similar to below;

....
energy = Energy()
energy.header.frame_id = "some_frame"
energy.consumption.power = 90
energy_msg_pub.publish(energy)
...

Assuming that you are using python. You hould be able to set your message with something similar to below;

....
energy = Energy()
energy.header.frame_id = "some_frame"
energy.consumption.power = 90
energy_msg_pub.publish(energy)
...