Full-featured chrome web browser robot skill that can be configured using control commands.
How to add the Chromium robot skill
- Load the most recent release of ARC (Get ARC).
- Press the Project tab from the top menu bar in ARC.
- Press Add Robot Skill from the button ribbon bar in ARC.
- Choose the Display category tab.
- Press the Chromium icon to add the robot skill to your project.
Don't have a robot yet?
Follow the Getting Started Guide to build a robot and use the Chromium robot skill.
How to use the Chromium robot skill
Full-featured Chrome web browser robot skill that can be configured using control commands.
Main Window
Print the current page
Maximize or restore the window state
Open the current page in the PC default browser
The current URL or enter a custom URL (press enter to browse)
The web content
Config Window
The default URL that will load when the project is loaded
The default window state of the robot skill when the project loads
ControlCommands
A ControlCommand() for this robot skill allows specifying the URL to be viewed. View the Cheat Sheet for easier access to this command.ControlCommand("Chromium", "NavigateTo", "URL") Specify the name of this robot skill in your project (i.e. chromium) Specify the URL to navigate to.
ControlCommand("Chromium", "WindowMaximize") Maximizes the robot skill window into the virtual desktop that it resides in.
ControlCommand("Chromium", "WindowNormal") Restores the window to a normal size within the virtual desktop that it resides in.
Interesting. So can a robot that is controlled by a browser interface, be controlled using this. Example if it uses the typical keyboard controls can we then connect that to a movement panel?
If you’d like to control a robot from your web browser, use one of the two http controls:
http server: https://synthiam.com/Support/Skills/General/HTTP-Server?id=16082
http custom server: https://synthiam.com/Support/Skills/General/HTTP-Server-Custom?id=16126
@Nink, Were you thinking of controlling 3rd party web controlled robots like the Rovio? (I know, old bot, but it is one I have, and it is web based).
If you can figure out the web commands, you could use a custom movement panel. I haven't gotten the Rovio to work that way, but it uses Javascript, not simple HTML. It is probably doable by having the Movement Panel call scripts to run Javascript now that ARC supports it as a scripting language, but I haven't spent the time to try to figure it out.
In any case, I don't think that was the intent of this skill. This is more to allow your robot to display web pages. My use case is that I have a web cam with IR that I wanted to use in a robot, just for remote night vision (not using it for any detection events) and it works in a browser, but there is something strange with its mpeg header and it doesn't work in the ARC camera control (although again, DJ did some recent updates and I haven't retested).
Alan, the robot skill that you’d be interested in is Stream All The Video Sources: https://synthiam.com/Support/Skills/Camera/Stream-All-The-Video-Sources?id=20279
Hi @Alan,
I am going to connect a Quad A1 to Synthiam. (See the robot dog thread). Initially we were thinking of writing a driver for the Moteus but I figured since Josh has already written various gaits and motions all I need to integrate with them. On further inspection it looks like he supports a series of JSON commands that I can send to the robot. https://github.com/mjbots/quad/blob/main/mech/quadruped_command.h#L28
You can see an example of its use at: https://github.com/mjbots/quad/blob/main/mech/web_control_assets/js/app.js#L517
So I will be begging for support (As always) with help to get this working when the time comes.
deleted - posted in wrong thread
I was looking at the Chromium Skill and noted it can call up images from my PC. But the ControlCommand for setting the URL does not exist. If it did, I could use ShowDesktop() to show the Chromium Window with photo and text - see below:
Let me take a look at that later this evening for ya. I'm taking a bit of a break tonight, given that it's sunday evening
This robot skill has been updated to v4, including a ControlCommand() to specify the URL to browse.
Thanks for making the effort to do this so promptly. It works brilliantly. Chromium is a much better option for me than trying to use the Full Screen Video Player. I am sure others users will make use of it too.
I think the browser is under-utilized. ARC should really provide full gui support via the http server. If you install the custom http server you can see there are some basic controls for robot and a camera. (It’s under remote control tab in project). As I mentioned in your other thread there is also websocket under the communication tab so you can build a full web based control panel and do what you want. You can also then control from a tablet if you like.
One day we may have an entire browser based version of ARC so we can run any skill direct from a browser and control from any device with a browser. After that you could even containerize ARC put ARC in the cloud and then use it as a service.
@nink, something like that
Something for next year. The ControlCommand("Chromium", "NavigateTo", &Filename) needs a maximize option. It defaults to normal which is a bit annoying. Have to maximize manually.
v6 includes control commands to maximize and normalize the window state
Brilliant. You deserve a holiday. Works perfectly. I created 90 HTML files which all display nicely with minimal coding effort.