Install ROS in docker image and call ros functions?

is there a way to install a docker image of ROS on the home assistant in order to send a ros command from the home assistant? i want to have buttons on the dashboard control a robot.

Raspberry pi forum cross post

https://forums.raspberrypi.com/viewtopic.php?t=385694

robotics stack exchange cross post

this is the exact message i want to publish

export ROS_MASTER_uri=http://192.168.1.220:11311 
export ROS_IP=192.168.1.219 
rostopic pub -r 10 /cmd_vel geometry_msgs/Twist '{linear: {x: 0.0, y: 0.2, z: 0.0}, angular:{x: 0.0,y: 0.0,z: 0.0}}'

the first two to join my home assistant and the scout and the last to send the command to move forward.