Thumbnail

Chromium

by Google

Full-featured chrome web browser robot skill that can be configured using control commands.

Requires ARC v6 (Updated 12/29/2023)

How to add the Chromium robot skill

  1. Load the most recent release of ARC (Get ARC).
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Robot Skill from the button ribbon bar in ARC.
  4. Choose the Display category tab.
  5. 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

User-inserted image

  1. Print the current page

  2. Maximize or restore the window state

  3. Open the current page in the PC default browser

  4. The current URL or enter a custom URL (press enter to browse)

  5. The web content

Config Window

User-inserted image

  1. The default URL that will load when the project is loaded

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


ARC Pro

Upgrade to ARC Pro

Don't limit your robot's potential – subscribe to ARC Pro and transform it into a dynamic, intelligent machine.

PRO
Canada
#1   — Edited

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?

#3  

@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).

PRO
Canada
#5  

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.

#6   — Edited

deleted - posted in wrong thread

PRO
Australia
#7   — Edited

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:

User-inserted image

PRO
Synthiam
#8  

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:)

PRO
Australia
#10  

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.

PRO
Canada
#11  

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.

PRO
Australia
#13  

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.

#14  

v6 includes control commands to maximize and normalize the window state

PRO
Australia
#15  

Brilliant. You deserve a holiday. Works perfectly. I created 90 HTML files which all display nicely with minimal coding effort.