Linux下ROS配置与操作命令
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
chhong@chhong-Studio-1435:~$ echo $ROS_PACKAGE_PATH
/home/chhong/ros_workspace/rgbdslam/rgbd_benchmark/benchmark_data: /home/chhong/ros:/home/chhong/octomap_mapping-experimental:
/home/chhong/ros_workspace:
/home/chhong/ros_workspace:
/opt/ros/electric/stacks
chhong@chhong-Studio-1435:~$ rospack find roscpp
[rospack] opendir error [No such file or directory] while crawling /home/chhong/ros [rospack] opendir error [No such file or directory] while crawling /home/chhong/octomap_mapping-experimental /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp
chhong@chhong-Studio-1435:~$ roscd roscpp
chhong@chhong-Studio-1435:/opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp$ chhong@chhong-Studio-1435:/opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp$ pwd /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp
chhong@chhong-Studio-1435:/opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp$ roscd roscpp/cmake chhong@chhong-Studio-1435:/opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/cmake$ pwd /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/cmake
chhong@chhong-Studio-1435:/opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/cmake$ roscd chhong@chhong-Studio-1435:/opt/ros/electric/ros$ pwd
/opt/ros/electric/ros
chhong@chhong-Studio-1435:/opt/ros/electric/ros$ roscd log
No active roscore
chhong@chhong-Studio-1435:~/.ros/log$ rosls roscpp_tutorials
add_two_ints_client listener_class notify_connect add_two_ints_server listener_multiple parameters add_two_ints_server_class listener_single_message rosbuild.cmake anonymous_listener listener_threaded_spin ROS_NOBUILD babbler listener_unreliable src bin listener_with_tracked_object srv CMakeLists.txt listener_with_userdata srv_gen custom_callback_processing Makefile talker listener manifest.xml time_api listener_async_spin node_handle_namespaces timers chhong@chhong-Studio-1435:~/.ros/log$ roscd roscpp_tutorials/ chhong@chhong-Studio-1435:/opt/ros/electric/stacks/ros_tutorials/roscpp_tutorials$ chhong@chhong-Studio-1435:/opt/ros/electric/stacks/ros_tutorials/roscpp_tutorials$ roscd turtle turtle_actionlib/ turtlesim/ turtle_tf/
chhong@chhong-Studio-1435:/opt/ros/electric/stacks/ros_tutorials/roscpp_tutorials$ roscd turtlesim chhong@chhong-Studio-1435:/opt/ros/electric/stacks/ros_tutorials/turtlesim$ chhong@chhong-Studio-1435:/opt/ros/electric/stacks/ros_tutorials/turtlesim$ cd ~/ros_workspace chhong@chhong-Studio-1435:~/ros_workspace$ roscreate-pkg beginner_tutorials std_msgs rospy roscpp /home/chhong/ros_workspace/beginner_tutorials already exists, aborting