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

bxl's profile - activity

2021-07-28 01:52:20 -0500 received badge  Famous Question (source)
2021-04-28 01:29:42 -0500 received badge  Famous Question (source)
2021-02-11 07:02:11 -0500 received badge  Notable Question (source)
2021-02-11 07:02:11 -0500 received badge  Popular Question (source)
2021-01-28 06:01:33 -0500 received badge  Notable Question (source)
2020-05-12 15:03:20 -0500 received badge  Famous Question (source)
2020-03-15 23:33:58 -0500 received badge  Famous Question (source)
2020-01-09 22:36:36 -0500 received badge  Famous Question (source)
2019-10-28 04:48:37 -0500 received badge  Nice Question (source)
2019-05-20 02:05:54 -0500 received badge  Famous Question (source)
2019-05-20 01:25:32 -0500 marked best answer Get rotate angle to move a robot in 3D environment

I have an UAV and my idea is to make it moves around some points I pass to it. My logic is the following:
1- Moves UAV in z-axis to adjust high;
2- Rotates around z-axis;
3- Moves forward on x-axis until reach the goal.

Step 1 works fine, but I'm getting problems on step number 2.
I have one coordinate frame for the the UAV and I get the angle between the uav and the point (in the world) as a transform between the frames of my goal_point and the UAV:

angle = transform_goal_robotPose.getRotation().getAngle();

However, I cannot get a metric to compare with and establish that the uav has rotated the correct angle and then can go to step 3. I was thinking about something like a comparison if (angle == expected_angle), but couldn't figure out none.
Someone knows how can I get it?

2019-05-09 00:32:50 -0500 received badge  Famous Question (source)
2019-04-13 03:38:13 -0500 received badge  Famous Question (source)
2019-02-26 17:52:23 -0500 received badge  Notable Question (source)
2019-02-21 10:43:35 -0500 marked best answer Python version to use with ROS kinetic

Which python interpreter version is most advisable to use with ROS kinetic and gazebo 7 simulator? As I read to set up ros to work with python 3 requires a extra effort.

2019-02-21 10:41:54 -0500 received badge  Student (source)
2018-12-07 15:24:31 -0500 received badge  Famous Question (source)
2018-11-15 17:18:14 -0500 received badge  Notable Question (source)
2018-11-15 07:08:52 -0500 received badge  Popular Question (source)
2018-11-15 06:59:43 -0500 edited question Link opencv in Cmakelist.txt

Link opencv in Cmakelist.txt What is the proper way of linking OpenCV on CMakeList.txt? That's my CmakeList.txt: find

2018-11-15 06:52:03 -0500 commented question Link opencv in Cmakelist.txt

From cmake docs target must have been created by add_executable command which expects a C/C++, however I'm using python

2018-11-15 06:50:18 -0500 commented question Link opencv in Cmakelist.txt

From cmake docs target must have been created by add_executable which is a C/C++, however I'm using python

2018-11-15 06:50:00 -0500 commented question Link opencv in Cmakelist.txt

From cmake docs target must have been creates by add_executable which is a C/C++, however I'm using python

2018-11-13 16:04:28 -0500 asked a question Link opencv in Cmakelist.txt

Link opencv in Cmakelist.txt What is the proper way of linking OpenCV on CMakeList.txt? That's my CmakeList.txt: find

2018-11-03 14:29:31 -0500 commented answer Unable to locate package ros-kinetic-geographic-msgs

It's working now

2018-10-31 04:03:44 -0500 marked best answer Error on import ros packages

I`m trying to write a ros module in python, but I'm facing this issue below:

import: not authorized `rospy' @ error/constitute.c/WriteImage/1028.
from: can't read /var/mail/sensor_msgs.msg
from: can't read /var/mail/tf2_msgs.msg
from: can't read /var/mail/geometry_msgs.msg
from: can't read /var/mail/cv_bridge

Is there any configuration wrong in CmkaList.txt or package.xml? Am I missing any file for cmake compile correctly python code?

EDIT #1: Added code

#!/usr/bin/env python

import rospy
from sensor_msgs.msg import Image,CameraInfo
from tf2_msgs.msg import TFMessage
from geometry_msgs.msg import TransformStamped
from cv_bridge import CvBridge
import airsim
import cv2
import numpy as np here

EDIT #2: The script is already executable chmod u+x script.py

2018-10-22 00:46:20 -0500 received badge  Famous Question (source)
2018-10-20 14:09:20 -0500 answered a question roscore param error

Look in your packages if package.xml are correctly. That was my error when I had this issue.

2018-10-20 14:05:38 -0500 received badge  Notable Question (source)
2018-10-20 13:06:41 -0500 answered a question Invalid <param> tag: Cannot load command parameter [rosversion]: command [rosversion roslaunch] returned with code[1]

Look in your packages if package.xml are correctly. That was my error when I had this issue.

2018-10-20 13:03:15 -0500 answered a question Error Invalid <param> tag on running roscore

I found the solution to this problem. It happens there was a parser error in package.xml in one of my packages.