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

Can we use ROS to record the energy consumption of the real robot?

asked 2022-04-08 10:23:59 -0500

mf0099000 gravatar image

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?

edit retag flag offensive close merge delete

Comments

2

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."

kscottz gravatar image kscottz  ( 2022-04-08 14:50:06 -0500 )edit

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.

mf0099000 gravatar image mf0099000  ( 2022-04-08 16:24:27 -0500 )edit

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.

kscottz gravatar image kscottz  ( 2022-04-08 18:19:32 -0500 )edit

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?

mf0099000 gravatar image mf0099000  ( 2022-04-09 14:35:26 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-04-08 21:54:32 -0500

lidiaxp gravatar image

If your robot has this topic, yes, you can. Else, you can simulate the energy consumption using some package as https://github.com/AlexanderSilvaB/ba..., in this way, you need modeling your robot considering battery, motors and sensors, and the code will return the energy consumption

edit flag offensive delete link more

Comments

Thanks a lot! How can I check if my robot has this topic? For simulating the energy consumption, is this simulated energy consumption the same as the real energy consumption?

mf0099000 gravatar image mf0099000  ( 2022-04-09 14:36:43 -0500 )edit

You should check the robot's official documentation - even if it's just some kind of API, you can write a ROS wrapper to have it as thr topic. I would look for keywords such as battery/percentage/power/statistics

ljaniec gravatar image ljaniec  ( 2022-04-09 17:56:10 -0500 )edit

Thanks a lot! Could you please tell me how to write ROS wrapper? I think that would be helpful for me. Our robot is kuka iiwa 14

mf0099000 gravatar image mf0099000  ( 2022-04-10 09:38:27 -0500 )edit

Overall, you need to know what kind of program API this robot has, then if there is an option to get or calculate energy consumption - then you should implement this in a ROS publisher or as a ROS service to call. This is a kind of example for working with I2C simpler electronics connected to ROS: https://people.eng.unimelb.edu.au/pbe.... I think KUKA robots should have some higher-level libraries...

ljaniec gravatar image ljaniec  ( 2022-04-11 07:57:26 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2022-04-08 10:23:59 -0500

Seen: 94 times

Last updated: Apr 08 '22