So I saw some guides to sending ssh commands using an action, but it requires I make some keys, which I did I think? But someone online seemed to think I needed to use portainer to make it available to the other docker images? So umm paste the key somewhere? I read a couple guides and they had different methods, but I have an odroid n2+, running the regular fully updated to stable distribution. Can you please help me to understand what I need to do in order to make it work? Which directory can I save it to, in order to access it with the file manager addon, and where do I paste the key file contents? Is it just right in the ssh addon in config there?
Also I’m not sure how to use portainer to open a command prompt, do I need to pay for that or something? I assumed it was free but there is mention of paid features.
I can definitely send the commands via terminal but after sending a ros twist command idk how to stop it sending the command… or send a command to stop moving.
You’re asking about a bunch of things that may be loosely related. But honestly I can’t even figure out the question right now. Step back and describe what you ultimately want to accomplish… (I want to xyz) Not how you think you’re trying to get there.(command line)
Because you don’t use portainer to send anything here it’s an endpoint that controls docker containers. And someone looking in is very confused right now.
Oh sorry. Well basically i got this little robot thing (moorebot scout Debian 9 machine arm v7 processor I think) that will accept ssh connections and commands sent through ros as ros melodic is installed on it. So I sent a message to the twist topic, which it understands as a command through terminal. It moved but didn’t stop moving.
I was trying to figure out how to send the commands through actions on the home assistant. That way I can Use a dashboard to control it. Also how to stop publishing the message and let it stop moving.
Thank you… We’re not mind readers. Also many folks try something and it’s probably not the best way to do something.
I get why you’d want to control a robot.
In general remember these facts.
HA is not a magic bullet and often complicates your issue. Solve the problem before you bring ha into the picture.
What I mean is you have a robot control problem. You cN start it can you stop it? You’ve proven you can trigger something but what should you be triggering?
Solve your control problem with scripts (including start stop runaway prevention etc.) completely before you ever bring ha into it… Then you know wahat question to ask. And then people can help. What tom points to is probably the way but you need solid commands FIRST
I actually can’t get it to work with the ssh integration. Just the ssh and terminal addon. Also I just want to move it with home assistant. It works with the app it came with. I just want the option. Also their is Already a script to do what I need, I just need to figure out how to publish ros commands via ssh in the home assistant. It worked with the terminal ssh addon I just need to figure out how to make it work with this integration.
rostopic pub /cmd_vel geometry_msgs/Twist “linear: {x: 0.5, y: 0.0, z: 0.0} angular: {x: 0.0, y: 0.0, z: 0.0}”
This command, I used the command thing and pasted this in after choosing the device. Is didn’t run. Is there like logs or something I can view to determine what’s going on? I turned debug logging on but I don’t see anything in logs under core.