Rosserial Windows与ROS之间的通信

小结 测试了下Rosserial Windows与ROS之间的通信,解决了几个问题。 过程 参考链接及代码,以Turtlesim为实验进行了配置,记录一些指令如下: john@ubuntu:~$ sudo apt-get install ros-noetic-rosserial-windows john@ubuntu:~$ sudo apt-get install ros-noetic-rosserial-server john@ubuntu:~$ roscore john@ubuntu:~$ rosrun turtlesim turtlesim_node john@ubuntu:~$ rosrun rosserial_server socket_node [ INFO] [1658159352.315079648]: Listening for rosserial TCP connections on port 11411 john@ubuntu:~$ rostopic list /rosout /rosout_agg /turtle1/cmd_vel /turtle1/color_sensor /turtle1/pose john@ubuntu:~$ rostopic echo /turtle1/cmd_vel 问题及解决 问题解决后,测试成功。 问题一:#include “stdafx.h”报错 解决: 设置工程属性,设置Precompiled Header为Not […]

ROS环境变量的设置

问题 ROS在运行或者启动过程中出现找不到包的问题,具体如下: ImportError : No module named xxxx.msg 或者 roscd/roslaunch cannot find the package that be built recently 原因是环境变量没设置好。 解决 设置环境变量: #source /opt/ros/noetic/setup.bash #source ~/catkin_ws/devel/setup.bash 或者一般是添加到~/.bashrc文件中。 参考 ROS中的roslaunch命令和launch文件(ROS入门学习笔记四) ImportError : No module named xxxx.msg roscd/roslaunch cannot find the package that be built recently

ROS Gazebo的几个问题

问题1 找不到JointTrajectoryController,报错如下: Could not load controller, JointTrajectoryController does not exist 解决: 进行安装: sudo apt-get install ros*controller* 问题2 报错: process has died [pid 20978, exit code 255, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode /home/aditya/catkin_ws/src/my_simulations/world/empty_world.world __name:=gazebo __log:= 解决: killall gzserver killall gzclient 问题3 报错: Error “context mismatch in svga_sampler_view_destroy” running GUI programs on Ubuntu in a VM 解决: $ […]