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

Running nodes on the turtlebot3 pi

asked 2018-07-11 10:27:25 -0500

AmateurHour gravatar image

Hello! I am running ROS on Ubuntu 16.02 for my turtlebot3. I am encountering extensive network issues trying to run the explore-lite package because my wi-fi is too congested and dropping packets. The result is that the transforms are often out of sync which causes the bot's position to jump around on RViz, which in turn causes the bot to think it has come in contact with a "fatal" collision, or it will think that it is in another position and will continuously collide with objects. That brings me to my question - is it possible to run the nodes on the turtlebot3's raspberry pi itself, therefore eliminating the network from the equation? Thank you for any guidance you can provide!

I'm running all these commands on the remote pc: roscore turtlebot3_bringup turtlebot3_robot.launch (on the turtlebot) turtlebot3_slam turtlebot3_slam.launch slam_methods:gmapping turtlebot3_navigation move_base.launch explore_lite explore_costmap.launch

I can provide the rqt_graph if needed, but I was wondering more about ways to avoid the network issue itself by lessening the use or eliminating the use of a remote pc altogether, having ros recognize that the nodes are running on one machine and that there is no need to use the wireless network.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-07-11 10:50:14 -0500

Delb gravatar image

Yes you can directly build and run your catkin_workspace on the raspberry.

Just connect to your rasp in ssh, put your src/ folder in a catkin workspace on your raspberry, run catkin_make (but be aware that you can have compilation issues since the performances of the raspberry are much lower than a computer, you can look into cross compilation but it's quite undocumented, I'm currently struggling with this) and then you can run your nodes/use your launch files.

Then to use Rviz you will have to run the rviz node on your remote PC (you will have to split one of your launch files) I think even with your network issues if the ssh connexion isn't dropped rviz could make it. You just have to set $ROS_MASTER_URI to the ip address of the rasp for both your remote PC and the rasp (using export ROS_MASTER_URI=http://192.168.x.xx:11311/ ) to have everything working.

I think I don't forgot anything.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-07-11 10:27:25 -0500

Seen: 371 times

Last updated: Jul 11 '18