ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Since you are using turtlebot3 I assume you have installed turtlebot3_simulations package. This package has turtlebot3_gazebo package with the launch file turtlebot3_house.launch or turtlebot3_empty_world.launch. chapter 11 of the turtlebot3 manual has a goot example.
The just publish a cmd_vel topic with linear velocity = 0 and angular velocity = 1.57 or maybe -1.57 using rostopic like this
rostopic pub -r 10 /cmd_vel geometry_msgs/Twist '{linear: {x: 0.0, y: 0.0, z: 0.0}, angular: {x: 0.0,y: 0.0,z: 1.57}}'
you probably need to play with what angular velocity value to use. if you use a linear velocity as well you will get a spiral
2 | No.2 Revision |
Since you are using turtlebot3 I assume you have installed turtlebot3_simulations package. This package has turtlebot3_gazebo package with the launch file turtlebot3_house.launch or turtlebot3_empty_world.launch. chapter 11 of the turtlebot3 manual has a goot example.
The just publish a cmd_vel topic with linear velocity = 0 and angular velocity = 1.57 or maybe -1.57 using rostopic like this
rostopic pub -r 10 /cmd_vel geometry_msgs/Twist '{linear: {x: 0.0, y: 0.0, z: 0.0}, angular: {x: 0.0,y: 0.0,z: you probably need to play with what angular velocity value to use. if you use a linear velocity as well you will get a spiral