Have turtlebot run in linear paths, using the navigation stack
Hi.
I have a turtlebot3 running in gazebo and rviz, and made a node that feed the navigation stack coordinates. via the following snippet:
move_base_msgs::MoveBaseGoal goal;
goal.target_pose.header.frame_id = "map";
goal.target_pose.header.stamp = ros::Time::now();
goal.target_pose.pose.position.x = 5;
goal.target_pose.pose.position.y = 5;
goal.target_pose.pose.orientation.w = 1.0;
ac.sendGoal(goal);
The issue is that I want it to only drive in linear paths and dont do obstacle avoidance. Preferably just stop, if it encounters an obstacle.
Are these parameters that I can set?
Im using AMCL for localization, running ubuntu 16.04 and ROS Kinetic.
I think you'll need to create some custom controller plugins so that it does an exact line following behavior, but also given the lack of obstacle avoidance, you probably don't even want the navigation stack, you want something far simpler, just a line follower. I don't think you have a need for something has heavy as autonomous navigation. There's no "obstacle avoidance off" setting.