Can we use ROS to record the energy consumption of the real robot?
Can we use ROS to record the energy consumption of the real robot? such as: current, watt, voltage. If yes, how can we achieve that?
This question is really vague, and the devil is in the details. Can you be more specific?
The short answer is yes, but I can't be more specific than "create a ROS node that generates topics about your battery state and then bag that topic while the robot is running."
Thanks a lot!
We have a kuka iiwa robot in the lab. And I also built a model with the help of moveit and gazebo in ROS. Now I can use joint_state_controller to get the topic of the joint angles, positions and torque. What we are trying to do now is to find a way to record also the energy consumption, not only from the simulation but also from the real robot.
You mentioned that we can generate topics about the battery state, could you please explain to me more specifically? That would very helpful for our reserach.
Well, it is hard to know because you didn't specify what robot you are working with. What topics do you have available? This is really a matter of whether that data is exposed through some sort of API. If you have access to it just create a ROS node that publishes the data to the topic and dump it to a bag file.
I don't know if ROS has the default package to record the energy consumption. For joint values, I have a joint_state_controller, which publish the joint values messages regularly. But for energy consumption, I don't know if there is a default package. How do I check that? Should I write a energy consumption package by myself?