Open OdedHorowits opened 3 days ago
Hi @OdedHorowits , are you running PointGimbalBehaviour within your aerostack2 instance?
ros2 launch as2_behaviors_perception point_gimbal_behavior.launch.py
namespace:=drone0
use_sim_time:=true
config_file:=sim_config/point_gimbal_behavior.yaml
Behavior configuration file should have the same gimbal name that used in the simulation description file:
/**:
ros__parameters:
gimbal_name: gb
gimbal_frame_id: gb/_0/_1/_2
gimbal_base_frame_id: gb
gimbal_threshold: 0.1
tf_timeout_threshold: 0.5
Hello
I use Gazebo with Aerostack2. I added a gimbal with a camera as can be seen here:
I try to use the
PointGimbalModule
module to control the gimbal with no success.I think the main problem is that I don't know the correct
frame_id
parameter that need to be supplied topoint_gimbal(self, _x: float, _y: float, _z: float, frame_id: str)
- I triedearth
,base_link
,drone0/base_link
but nothing seems to work. My code just gets to the point where I callpoint_gimbal()
and holds. I added a debug msg at that function and I can see it is printed (at/opt/ros/humble/lib/python3.10/site-packages/as2_python_api/modules/point_gimbal_module.py
)I tried to send a direct
geometry_msgs/msg/Vector3Stamped
msg to the topic/sensor_measurements/gb/twist
, it gets sent every 1 second with no effect.Also tried to send a direct
as2_msgs/msg/GimbalControl
msg to/drone0/platform/gb/gimbal_control
with the same result.What is the right way to control the gimbal?
Thank you