Hi
When running the ros example,i got some problems.
I enter follow command
1.cd ORB_SLAM2&& cd Examples&& cd ROS&&cd ORB_SLAM2
2.export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:/home/cm/ORB_SLAM2/Examples/ROS
3.rosrun ORB_SLAM2 RGBD /home//ORB_SLAM2/Vocabulary/ORBvoc.txt /home//ORB_SLAM2/Examples/RGB-D/TUM1.yaml
I get this error:
Hope to your reply, thank you.
Make sure you are running ROS master before running any ROS node.
rosrun roscore
If the ROS master is running in another machine check/set your ROS_IP and ROS_MASTER_URI environment variables.
export ROS_IP=_your_ip_
export ROS_MASTER_URI=http://_master_ip_:11311
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:_pathtoORB_SLAM_/Examples/ROS
I just turn on a terminal and enter the last orders:
1.cd ORB_SLAM2&& cd Examples&& cd ROS&&cd ORB_SLAM2
2.export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:/home/cm/ORB_SLAM2/Examples/ROS
3.rosrun ORB_SLAM2
What's the ROS master?
PS:could u leave the email adress?
在 2016-03-22 09:28:17,"Denny Mathew" [email protected] 写道:
Make sure you are running ROS master before running any ROS node.
rosrun roscore
If the ROS master is running in another machine check your check/set your ROS_IP and ROS_MASTER_URI environment variables.
export ROS_IP=;export ROS_MASTER_URI=http://:11311;export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}://Examples/ROS
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
The expected sequence would be
1.roscore &
The roscore command, which starts the rosmaster, should always be run first before executing any ROS node. Then only will you be able to communicate between your nodes and also a host of other tasks.
I would request you to get the basic intro to ROS first and then continue on.
Most helpful comment
The expected sequence would be
1.roscore &
2.cd ORB_SLAM2 && cd Examples && cd ROS && cd ORB_SLAM2
3.export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:/home/cm/ORB_SLAM2/Examples/ROS 4.rosrun ORB_SLAM2 RGBD /home/ORB_SLAM2/Vocabulary/ORBvoc.txt /home/ORB_SLAM2/Examples/RGB-D/TUM1.yaml
The roscore command, which starts the rosmaster, should always be run first before executing any ROS node. Then only will you be able to communicate between your nodes and also a host of other tasks.
I would request you to get the basic intro to ROS first and then continue on.