stm32自主移动机器人控制+rviz显示

参考:https://www.ncnynl.com/category/ros-car-b/ 

这里是创客做的步进电机教程

 我用的是can总线连接的伺服电机 ,有一定差别不过不大

根据教程,如果catkin_Make 出错,请更改package.xml中depend项

  catkin
  
  nav_msgs
  roscpp
  rospy
  serial
  std_msgs
  tf
  nav_msgs
  roscpp
  rospy
  serial
  std_msgs
  tf
  nav_msgs
  roscpp
  rospy
  serial
  std_msgs
  tf

CMake Error at /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:191 (message):
  catkin_package() the catkin package 'rospy' has been find_package()-ed but
  is not listed as a build dependency in the package.xml

编译成功后

其中有个键盘控制

rosrun teleop_twist_keyboard teleop_twist_keyboard.py

2.https://www.ncnynl.com/archives/201609/843.html 

制作小车模型教程小车模型

编译成功后

roslaunch smartcar_description smartcar_display.rviz.launch

就可以用键盘控制rviz中的小车了

 

 

你可能感兴趣的:(Linux)