ros topic
文章平均质量分 66
bbtang5568
这个作者很懒,什么都没留下…
展开
-
ROS 问题系列(一):Robot State相关
Failed to fetch current robot state当在程序中使用move_group.getCurrentJointValues()获取当前机器人的关节值时,程序执行到move_group.getCurrentJointValues()时,就会有如下报警。Didn't received robot state (joint angles) with recent timestamp within 1 seconds.Check clock synchronization if .原创 2021-01-10 01:24:40 · 3208 阅读 · 2 评论 -
ROS URDF(五): sensor_msgs::JointState 消息类型的赋值
为了使创建的URDF机器人模型正确运动,必须给出robot_state_publisher 节点所需的sensor_msgs::JointState型topic:joint_states。可参见:robot_state_publishersensor_msgs::JointState消息格式为:std_msgs/Header headerstring[] namefloat64[] positionfloat64[] velocityfloat64[] effort那么,如何正确给senso原创 2020-09-16 01:21:26 · 3679 阅读 · 0 评论 -
带有header的自定义ros meaasge
主要参考链接:http://wiki.ros.org/msg最近由于需求,需要自定义一些topic格式进行数据的处理。基于常见的数据类型:int32 flosat32 bool 等可以定义出需要的消息格式。如:example.msgint32 afloat32 bbool c则在终端查看消息类型为example.msg定义的example_topic时rostopic...原创 2018-10-06 16:27:13 · 9453 阅读 · 3 评论 -
echo ros自定义message报警
zyn@ubuntu:~$ rostopic echo /ultrasonic_typeTraceback (most recent call last):File “/opt/ros/indigo/bin/rostopic”, line 35, in rostopic.rostopicmain()File “/opt/ros/indigo/lib/python2.7/dist-packa...原创 2018-10-06 18:01:54 · 1265 阅读 · 1 评论 -
带有 数组格式的自定义ros message
最近由于需求,需要自定义一些topic格式进行数据的处理。基于常见的数据类型:int32 flosat32 bool 等可以定义出需要的消息格式。如:example.msgint32 afloat32 bbool c则在终端查看消息类型为example.msg定义的example_topic时rostopic echo /example_topic有类似如下显示:a...原创 2018-10-15 14:31:20 · 3050 阅读 · 1 评论 -
自定义nodelet插件
参考链接:http://wiki.ros.org/nodelethttp://wiki.ros.org/nodelet/Tutorials/Running a nodelethttp://wiki.ros.org/nodelet/Tutorials/Porting nodes to nodeletshttps://blog.csdn.net/zyh821351004/article/det...原创 2018-10-29 00:59:39 · 419 阅读 · 1 评论 -
rostopic pub 命令发布自定义消息类型
自定义消息类型:hdw_driver/update_file_msgstring motor_board_file_namestring power_board_file_namestring sensor_board_file_namestring imu_board_file_namebool update_motor_boardbool update_power_boardbo...原创 2019-03-14 17:59:06 · 3479 阅读 · 0 评论 -
ROS 发布器第一次发布的消息,订阅器订阅不到解决方案
代码主体:ros::Publisher pub = n.advertise<geometry_msgs::Twist>("vel_ctl",10);ros::Rate loop_rate(1);geometry_msgs::Twist msg; int count = 0; while (ros::ok()) { count++; ms...原创 2019-03-14 18:17:27 · 5278 阅读 · 4 评论