ROS 应用中两个最重要的:单位、坐标系、坐标轴规范: REP-103、REP-105
单位坐标轴规范:
https://www.ros.org/reps/rep-0103.html
坐标系规范:
https://www.ros.org/reps/rep-0105.html
单位坐标轴规范:
https://www.ros.org/reps/rep-0103.html
坐标系规范:
https://www.ros.org/reps/rep-0105.html
一、安装PlotJuggler
sudo apt install ros-$ROS_DISTRO-plotjuggler-ros, 例如
sudo apt install ros-humble-plotjuggler-ros
二、安装接收ROS topic的插件
sudo apt install ros-${ROS_DISTRO}-plotjuggler-ros
例如: sudo apt install ros-humble-plotjuggler-ros
三、运行
ROS1运行:
rosrun plotjuggler plotjuggler
ROS2运行:
ros2 run plotjuggler plotjuggler
四、显示波形配置步骤
https://docs.hiwonder.com/projects/MentorPi/en/latest/docs/1.getting_ready.html#mentorpi-introduction
1、创建 udp的xml文件,比如(udp.xml),内容如下:
<?xml version="1.0" encoding="UTF-8" ?>
<profiles xmlns="http://www.eprosima.com/XMLSchemas/fastrtps_profiles">
<transport_descriptors>
<transport_descriptor>
<transport_id>udp_transport</transport_id>
<type>UDPv4</type>
</transport_descriptor>
</transport_descriptors>
<participant profile_name="udp_participant">
<rtps>
<userTransports>
<transport_id>udp_transport</transport_id>
</userTransports>
<useBuiltinTransports>false</useBuiltinTransports>
</rtps>
</participant>
</profiles>
<!--export FASTRTPS_DEFAULT_PROFILES_FILE=/home/nvidia/ros2/udpset.xml-->
2、使用方法
export FASTRTPS_DEFAULT_PROFILES_FILE=/xxx/....../udp.xml,例如:
export FASTRTPS_DEFAULT_PROFILES_FILE=/home/nvidia/ros2/udpset.xml
3、原始文件
见本博客附件.
2、激活map_server节点:
ros2 lifecycle set /map_server configure
3、启动map静态坐标系转换:
因为点云地图是基于UTM坐标系的,其数值太大,RVIZ不能正确显示,因此通过一个静态坐标系转换节点,作一个坐标系偏移.
ros2 launch ./static_tf2_broadcaster.py去掉默认的定位: AMCL
ros2 launch nav2_bringup citi_robot_navigation_launch.py
注意: topic:/amcl_pose(好像必须为这个topic名字,Nav2才行,待确认!),
负责坐标系转换:全局定位(地图)与里程计坐标系, map<------odometry