This is a ROS application using Nextjs.
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.
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.
Open http://localhost:3000/api/ros with your browser to see the API result using Hono as routing.
The topics of the nextjs_ros_app are as follows.
Subscribe data
- /color/image_raw/compressed
The source code is released under a MIT license.