ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

ros_master's profile - activity

2021-06-06 09:24:36 -0500 received badge  Famous Question (source)
2017-10-02 02:55:47 -0500 received badge  Famous Question (source)
2016-05-31 02:10:08 -0500 received badge  Student (source)
2016-04-02 13:17:49 -0500 received badge  Taxonomist
2015-08-19 15:11:01 -0500 received badge  Famous Question (source)
2014-12-08 01:56:33 -0500 received badge  Notable Question (source)
2014-12-03 01:33:08 -0500 received badge  Popular Question (source)
2014-12-02 08:20:51 -0500 asked a question autonomous navigation

I try to run teleop node and the autonomous navigation at the same time.But when i use 2d nav goal at auotonomous navigation,turtlebot doesn't move.What do you think about this problem?

2014-11-15 04:29:57 -0500 received badge  Notable Question (source)
2014-11-05 09:42:21 -0500 received badge  Notable Question (source)
2014-11-04 11:21:45 -0500 received badge  Popular Question (source)
2014-11-04 11:21:19 -0500 received badge  Popular Question (source)
2014-11-04 06:57:35 -0500 commented answer SendingSimpleGoals

Can you tell me what is the all story? Where can I learn what should I do in detail?

2014-11-04 04:53:33 -0500 asked a question SendingSimpleGoals

Hello guys, Following the SendingSimpleGoals tutorial

http://wiki.ros.org/navigation/Tutori...

, after running the executable, Waiting for the move_base action server to come up waits forever. Can anyone suggest me?

2014-11-04 03:29:05 -0500 received badge  Editor (source)
2014-11-04 03:27:54 -0500 asked a question move forward turtlebot2 in the real world

Hi guys. I want to move the turtlebot. I am using Hydro and KobukiBase. Firstly i created package inside my catkin_ws:

$ catkin_create_pkg forward std_msgs rospy roscpp actionlib tf geometry_msgs move_base_msgs .

Then i edit CMakeList:

add_executable(gg src/gg.cpp) and target_link_libraries(gg, ${catkin_LIBRARIES})

Thirdly, i run these commads:

catkin_make
roscore
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:'pwd'
source ./devel/setup.bash
rosrun forward gg.cpp

gg.cpp :

 #include <ros/ros.h>
#include <geometry_msgs/PoseWithCovarianceStamped.h>
#include <geometry_msgs/Twist.h>
#include <tf/transform_datatypes.h>
#include <stdio.h>
#include <math.h>
#include <tf/transform_listener.h>
#include <algorithm>
#include <geometry_msgs/PointStamped.h>
#include <std_msgs/Header.h>
#include <iostream>


int main(){

 geometry_msgs::PointStamped p;
 geometry_msgs::PointStamped p1;
 p.header.stamp = ros::Time();
 std::string frame1 = "/camera_depth_optical_frame";
 p.header.frame_id = frame1.c_str();

 p.point.x = 0;
 p.point.y = 0;
 p.point.z = 1; // 1 meter

// std::string frame = "map";

 /*try
 {
   listener.transformPoint(frame,p,p1);
 }catch(tf::TransformException& ex) { ROS_ERROR("exception while transforming..."); }
*/
 // create message for move_base_simple/goal 
 geometry_msgs::PoseStamped msg;
 msg.header.stamp = ros::Time();
 std::string frame = "/map";
 msg.header.frame_id = frame.c_str();
 msg.pose.position = p1.point;
 msg.pose.orientation = tf::createQuaternionMsgFromYaw(0.0);
 //publisher.publish(msg);

}

errors:

[rosrun] Couldn't find executable named gg.cpp below /home/turtlebot/catkin_ws/src/forward
[rosrun] Found the following, but they're either not files,
[rosrun] or not executable:
[rosrun]   /home/turtlebot/catkin_ws/src/forward/src/gg.cpp

I think this code is correct and executable but rosrun command is wrong. I don't fix this. What do you think about these errors?

2014-11-03 13:37:15 -0500 received badge  Popular Question (source)
2014-11-03 08:46:42 -0500 commented answer move forward turtlebot

Invoking "make" failed

2014-11-03 08:46:30 -0500 commented answer move forward turtlebot

make[1]: * [ileri/CMakeFiles/gg.dir/all] Error 2

2014-11-03 08:46:20 -0500 commented answer move forward turtlebot

make[2]: * [ileri/CMakeFiles/gg.dir/src/gg.cpp.o] Error 1

2014-11-03 08:46:10 -0500 commented answer move forward turtlebot

/home/turtlebot/catkin_ws/src/ileri/src/gg.cpp:31:3: error: expected unqualified-id before ‘catch’

2014-11-03 08:46:10 -0500 received badge  Commentator
2014-11-03 08:45:58 -0500 commented answer move forward turtlebot

/home/turtlebot/catkin_ws/src/ileri/src/gg.cpp:28:2: error: expected unqualified-id before ‘try’

2014-11-03 08:45:48 -0500 commented answer move forward turtlebot

/home/turtlebot/catkin_ws/src/ileri/src/gg.cpp:18:2: error: ‘p’ does not name a type

2014-11-03 08:45:31 -0500 commented answer move forward turtlebot

After compile:

[100%] Building CXX object ileri/CMakeFiles/gg.dir/src/gg.cpp.o

2014-11-03 08:36:19 -0500 received badge  Famous Question (source)
2014-11-03 08:10:55 -0500 commented answer move forward turtlebot

i tried but doesn't run. Are there problems about include? What do you think?

2014-11-03 07:15:48 -0500 asked a question move forward turtlebot

Hi guys. I want to move the turtlebot. Firstly i created package inside my catkin_ws

$ catkin_create_pkg /..package_name../ std_msgs rospy roscpp actionlib tf geometry_msgs move_base_msgs .

Then i edit CMakeList

add_executable(myProgram src/main.cpp) and target_link_libraries(<executabletargetname>, ${catkin_LIBRARIES})

Thirdly, i run these commads:

catkin_make
roscore
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:'pwd'

source ./devel/setup.bash
rosrun package_name cpp_name

.cpp :

geometry_msgs::PointStamped p;
 geometry_msgs::PointStamped p1;
 p.header.stamp = ros::Time();
 std::string frame1 = "/camera_depth_optical_frame";
 p.header.frame_id = frame1.c_str();

 p.point.x = 0;
 p.point.y = 0;
 p.point.z = 1; // 1 meter

 std::string frame = "map";

 try
 {
   listener.transformPoint(frame,p,p1);
 }catch(tf::TransformException& ex) { ROS_ERROR("exception while transforming..."); }

 // create message for move_base_simple/goal 
 geometry_msgs::PoseStamped msg;
 msg.header.stamp = ros::Time();
 std::string frame = "/map";
 msg.header.frame_id = frame.c_str();
 msg.pose.position = p1.point;
 msg.pose.orientation = tf::createQuaternionMsgFromYaw(0.0);
 publisher.publish(msg);

Error: Couldn't find executable

Does anyone have an idea?

2014-11-03 04:10:17 -0500 received badge  Supporter (source)
2014-11-03 04:09:36 -0500 answered a question move turtlebot 1 meter forward

Hi ZeroCool, i'm struggling with this same problem. Please can you send your all code? Thank for your interest.

2014-11-03 03:35:56 -0500 commented answer Ros Programming how to open my saved map

In rviz, there are global and local maps, when robot moves, global map coordinates does not change but local ones change, so which coordinates should i use to move robot from somewhere to another where.

2014-11-03 03:34:57 -0500 commented answer Ros Programming how to open my saved map

Localisation problem : When i move forward robot by using teleoperation, it goes wrong direction in map.

2014-11-03 01:54:10 -0500 received badge  Notable Question (source)
2014-11-02 14:31:30 -0500 received badge  Popular Question (source)
2014-11-02 13:38:00 -0500 commented answer Ros Programming how to open my saved map

Thank you very much !! I solved the problem in the first question. In the second question, while running robot can localize truly. Robot moves in wrong directions but after I closed the map.

2014-11-02 08:14:02 -0500 commented question Ros Programming how to open my saved map

For the first question, map file does not appear in directory which i saved map, this situation happens when i shut down the computer. For the second question map is loaded but robot can not find its location on the appearing map.

2014-11-02 06:34:48 -0500 asked a question Ros Programming how to open my saved map

Hi guys. I have a problem. I am beginner at ROS Programming. I use RVIZ for mapping. 1) I mapped with Turtlebot using this tutorial: link text . Then next day I tried to open my map using this tutorial: link text but my map didn't open. I can't understand how I will solve this problem.

2) I see that Turtlebot can't localize itself truly on the map when after I open the map at the same day.