/nextjs_ros_app

This is a ROS application using Nextjs.

Primary LanguageTypeScriptMIT LicenseMIT

nextjs_ros_app

This is a ROS application using Nextjs.

GitHub stars GitHub forks GitHub issues GitHub license

Getting Started

First, install nodejs and nvm packages:

sudo apt-get install nodejs
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
ls -l ~/.nvm | grep ins*
source ~/.bashrc
command -v nvm

node -v
# v12.22.9
nvm ls-remote
nvm install 20.13.0
nvm use 20.13.0

Second, install dependences, create next app and, run the development server:

npm install -g typescript
npm install hono
npm i -g wrangler
npm install roslib
# npx create-next-app@latest
# What is your project named? > nextjs_ros_app

npm run dev

Open http://localhost:3000 with your browser to see the result.

nextjs_ros_app

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

develop

Open http://localhost:3000/api/ros with your browser to see the API result using Hono as routing.

Publish and Subscribe Topics

The topics of the nextjs_ros_app are as follows.

Subscribe data

  • /color/image_raw/compressed

License

The source code is released under a MIT license.