ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Unable to move robot on a map in a Web app

asked 2020-12-28 17:44:56 -0500

ritubhawal gravatar image

I'm currently working on a web app that renders a 3d map and a robot on it. I wish to be able to control the robot through the web app itself. Can someone please help me out with it.

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-01-03 23:17:27 -0500

RyeGuy12 gravatar image

To get you started check out roslib to connect to your ROS server. It's important you have Ros3djs installed to provide the visualization in the browser.

These docs provide a decent tutorial to get you started. Also make sure you have the rosbridge websocket to connect to your ROS instance in the web browser.

Finally if your robot is not already moving you can use the joint state publisher gui to provide a quick and easy way to update the joint positions.

edit flag offensive delete link more

Comments

I was able to set up rosbridge WebSocket. I did take a look at the joint state publisher GUI, but I was hoping to build a standalone web app. So basically anyone should be able to access the web app, view a 3d map, move the robot to the desired location without making any installations on their system. I am building this app with a drone in mind so I won't be able to use the nav2djs for it either, as it would require taking off, move to a particular altitude, forward, backward, or land. Is there any other package that I could use?

ritubhawal gravatar image ritubhawal  ( 2021-01-04 23:11:25 -0500 )edit

Package to move the drone to a specific location? Not sure about that. You may be able retrieve the point in the scene the user clicked by implementing this SO answer

Advertise a service in ROS that takes a requested location and move the drone. From the web app call the service with the desired position. If the joint_states topic is updated correctly then it should be reflected in the web app viewer

RyeGuy12 gravatar image RyeGuy12  ( 2021-01-05 12:37:52 -0500 )edit

Question Tools

Stats

Asked: 2020-12-28 17:44:56 -0500

Seen: 161 times

Last updated: Jan 03 '21